Closed Ultra-Instinct-05 closed 5 years ago
Depending on how you use it. The library connect to Firebase through REST API. Withh REST API, client makes http connection with POST, PUT, GET, PATCH and DELETE request to firebase server as response (data at defined node or requested URI) received then it closed connection except for stream that keep the connection alive.
Continuousely make http connection to server is not make sense.
Assume I have the following setup :
I am also running a MQTT server on the same ESP32 device and hence the MQTT has to publish a message on the push of a button. Is it possible for me to add the data to the database only once for every push of a button rather than continuously populate the database ?