[SOLVED] Ubidots disconnecting withing one hour or two hour

i use nodemcu esp8266 module and i use ubidots library but after one hour its automatically disconnect and not reconnect after switch off and switch on its automatically connect
“UbidotsMicroESP8266.h” please help me

Dear @Ranidu1304,

Can you let us know which of the methods below are you using?:

  • getValue();
  • getValueUDP();
  • getValueWithDevice();
  • getVarTimestamp();
  • getVarContext();
  • add();
  • sendAll();
  • sendHTTP();
  • sendTLATE();

All the best,
Maria C.

client.add(ID_1, Celsius);
//client.add(ID_2, value2);
client.sendAll(false);
delay(5000);
}

I also had same problem
i use this line for send value in the main loop
client.add(ID_1, Celsius);
//client.add(ID_2, value2);
client.sendAll(false);
delay(5000);

@Ranidu1304 @thilak

We are going to make a test in order to reproduce your inconvenience. Anyway, here is a basic example to post data to Ubidots without using the library you can use it and check if the same behavior is presented.

All the best,
Maria C.

thank you i will try it

I try same library adding watchdog timer to auto rest the nodmcu .then its working