Replies: 1 comment
-
You should pot in English. The library reports the server connection over internet status by calling fbdo.httpConnected() from FirebaseData object which returns true when server connected and return false when no connection with server. Depending on how you use the FirebaseData object, you can check this server connection status after you call non-stream functions to read and store data i.e. get, set, push, update and delete. With stream, especially using callback, you can check the server connection status from the FirebaseData object that works for stream whenever you want as it is polling check the server event data from server in loop or in esp schedule task, if the keep-alive event data is missing more than the specified timeout (default value is 40 seconds), the sever connection in the FirebaseData object will set to false. You can change this timeout as in the example comment. Firebase-ESP8266/examples/Basic/Basic.ino Lines 106 to 115 in 20aab69 |
Beta Was this translation helpful? Give feedback.
-
Buenas tardes, tengo un proyecto que utiliza la librería cliente firebase eso82660 AND esp32, a su vez un módulo Bluetooth hc-05 que espera pedidos y acciona de acuerdo a lo que recibe.
Mí pregunta es como hacer para los casos en que la conexión a internet se pierde (no la red wifi, sino internet) y que entre tanto reconecte siga escuchando las peticiones Bluetooth.
Estuve probando y una vez que le corto el suministro de internet a la red wifi tarda 5 minutos en responder a la lectura del puerto serial.
Alguna recomendación para que estas lecturas Bluetooth no sean discontinuas por más que se pierda la conectividad a internet?
Beta Was this translation helpful? Give feedback.
All reactions