Ubidots disconnecting withing one hour or two hour


#1

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


#2

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.


#3

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


#4

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);


#5

@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.


#6

thank you i will try it


#7

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