This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I haven't been able to run lte_ble_gateway for more than 2 days

Hi, 

I am have programmed my Thingy 91 device with lte_ble_gateway program to collect data from 5 Bluetooth devices and send them to the cloud. This program runs fine, however it does not appear to continue to run for more than 2 days, after that the program just goes silent. No output, no error message no nothing. 

Can someone point me in the right direction please?

Parents
  • Hi,

    Marshed said:
    my program will hang. This is what I think need to be solved. 
    Marshed said:
    Shouldn't the program try to reconnect? or at least give error message and come out of this loop?

      the sample doesn't reconnect, unfortunately. If a disconnect occurs, you have to manually re-connect (using for instance cloud_connect()).

    Does your device hang in the while-loop, in either mqtt_live() or mqtt_ping() forever? Changes to the network status might take minutes before the socket operation times out.

     

    Kind regards,

    Håkon

Reply
  • Hi,

    Marshed said:
    my program will hang. This is what I think need to be solved. 
    Marshed said:
    Shouldn't the program try to reconnect? or at least give error message and come out of this loop?

      the sample doesn't reconnect, unfortunately. If a disconnect occurs, you have to manually re-connect (using for instance cloud_connect()).

    Does your device hang in the while-loop, in either mqtt_live() or mqtt_ping() forever? Changes to the network status might take minutes before the socket operation times out.

     

    Kind regards,

    Håkon

Children
Related