The use of the ESP8266 in the world of IoT

User avatar
By GiuseppeBrandi
#92052 Hello guys. I have a very simple project that evolves just wrinting data in firebase through ESP8266.

value = Firebase.getFloat("sensordata");
Firebase.setFloat("sensordata", selected + 12);
if (Firebase.failed())
{

Serial.print("pushing /logs failed:");
Serial.println(Firebase.error());
return;
}


But everytime I try to set the data it gives an error from the Firebase.failed() method:



[HTTP-Client][sendRequest] type: 'GET' redirCount: 0
[HTTP-Client] failed connect to chuveiro-flutter-firebase-default-rtdb.firebaseio.com:443
[HTTP-Client][returnError] error(-1): connection failed
[HTTP-Client][end] tcp is closed
valor corrente2
0.00
[HTTP-Client][begin] host: senddatato-firebase-default-rtdb.firebaseio.com port: 443 url: /Corrente.json?auth=08IMGyxRPQLWnhRrsc5zbMgX79nWavczl0iosDnL httpsFingerprint: 50:89:50:57:90:1F:37:E3:B8:F3:5B:02:ED:3A:65:6E:6A:34:DB:93
[HTTP-Client][sendRequest] type: 'PUT' redirCount: 0
scandone
state: 0 -> 2 (b0)
[HTTP-Client] failed connect to sendatato-firebase-default-rtdb.firebaseio.com:443
[HTTP-Client][returnError] error(-1): connection failed
[HTTP-Client][end] tcp is closed
pushing /logs failed:

any idea what is this error related with?