Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LAUNCHXL-CC1350: MQTT not sending data if we increase publishing timeout to 1 and half hours

$
0
0

Part Number:LAUNCHXL-CC1350

Hi,

We are using CC1350 Launchpad as the node (Webdemo code) and gateway(slip radio). We are trying to send data to our external server after every 1 and half hour via MQTT, so we changed the 

#define CC26XX_WEB_DEMO_DEFAULT_PUBLISH_INTERVAL    (30 * CLOCK_SECOND)

to

#define CC26XX_WEB_DEMO_DEFAULT_PUBLISH_INTERVAL    (5400 * CLOCK_SECOND)

also we are triggering the data send manually like button press by generating events using the following,

process_post(PROCESS_BROADCAST, cc26xx_web_demo_publish_event, NULL);

but if we are trying to send data after sometime like 5 mins, it is taking too much time and disconnecting and then reconnecting then only it is sending. The log is as follows,

MQTT- Publish En queued 

MQTT - Disconnected by tcp event 2

APP - MQTT Disconnect Reason 2

Disconnected 

-----------

then it is connecting and sending

  1. Please let me know why it is taking too much time and why it is disconnecting and reconnecting.
  2. Is there any parameter that needs to be taken care to keep the connection alive.
  3. If we are sending data frequently like 5 sec etc it is going fine without any delay. Since the connection is alive why it is disconnecting and reconnecting when we are increasing the publishing interval.

Please let me know your thoughts.

Thanks

Rahul


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>