I use this code
void ubidotsDataUpload(){
float temp = dht.readTemperature();
Serial.print("Ubidots temperature: ");
Serial.println(temp);
client.add("Temp", temp);
client.sendAll(true);
delay(2000);
}
and it works well for some days. I stop my nodeMCU 1.0 for some days for make other things and when I upload the SAME sketch to the nodeMCU it doesn’t work anymore. I try also with the example but nothing happens. And it isn’t a DHT problem because I try also to use a static number (like float temp = 2;
) but it doesn’t work. The connection to the internet works well because in the same sketch I perform some other wifi function (like check the weather) and works well. So what is the problem?
Thanks!