Data push to Firebase failed to send after several hour of success

Hello i'm creating a project to monitoring fish pond condition using ESP32 and several sensor, the data logged in firebase using library from mobizt Firebase-esp-client. GitHub - mobizt/Firebase-ESP-Client: 🔥Firebase Arduino Client Library for ESP8266, ESP32 and RP2040 Pico. The complete, fast, secured and reliable Firebase Arduino client library that supports RTDB, Cloud Firestore, Firebase and Google Cloud Storage, Cloud Messaging and Cloud Functions for Firebase., at first, nothing wrong with the data sent to firebase, it successfully logged in JSON format via FirebaseJSON object generator and i use the PushJSON function to send the data with unique ID generated by Firebase.


But after several hour, around 6-7 hour the ESP32 failed to send data but the WiFi connection still alive and the connection to Firebase is alive. i check it by using the library function Firebase.ready(), it will return the bool value of connection status to firebase.

I got this for 2 days and now i'm trying to force reconnect the connection from WiFi to my ESP32 but to no avail, the problem still there. The data will successfully sent if only i reset the ESP32, but the cycle will continue.

Could be memory "leakage"

esp32 arduino ram memory leakage - Google Search

Identifying and solving is a P.I.T.A.

Hmm if it's true, should i try using other platform method instead of firebase, like Thingsboard or MyDevice Cayenne ?. I want to build IoT for my fish pond project.

Were it a 'server' problem, POR of the client would seemingly not be necessary, thus I suspect a client software issue.

When you say "IoT" what exactly do you envision?

  • Local LAN access/control of systems and realtime data?
  • Remote WAN Internet access with cloud-hosted data?

From a Google search, memory leaks happen, many different software concerns.

ESP32 API has some tools to report memory usage:
ESP32 RAM Check - Using Arduino / Programming Questions - Arduino Forum

You should set debug options for WIFI, SSL and OOM in Arduino IDE.

And also debug your code for the free memory.

The library provided function that showed the error reason which you should use it for your debugging.

You should ask this question at the Github repository instead.

It's a remote WAN or cloud server that can stay on providing service 24/7. I'm afraid my only laptop can't stay on 24/7 for 30 days.

Thank you so much i will post it there as well

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.