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

  • Hi,

    I have tested the solution of reconnecting whenever disconnection occurs, however I noticed that LTE attempts reconnection after 30 seconds, 60 seconds, 90 seconds, 1890 seconds, 3690 seconds, ..... Are these variables defined in the program? network? or modem software? If they are defined in the program where and can I change them?

    Regards

    Marshed  

Reply Children
Related