-
I want to store an array of sensor readings for one minute (of which there are about 1500 values) into a realtime database. But when the sensor reading is finished, the array cannot be stored to firebase with the error "Set Array.... Send Request Failed" I'm using a XIAO ESP32C3 micro with a private wifi connection (hotspot). This is the code I made. P.s. I tried to store analog values from analogRead pin d with a total of 1500 arrays that could be done, but when assembled with sensors it failed. void sendArrayRTDB(){ // if(sizeof(signalValues) > 500){
// } void storeValue(int value) { void loop()
} else { |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I recommend you follow the examples e.g. this basic example to see what required in setup and loop. |
Beta Was this translation helpful? Give feedback.
-
It's not related to cables. At least it requires that, In your case, the internet connection can be the issue. I just test storing 1500 arrays of float value at once with |
Beta Was this translation helpful? Give feedback.
-
You should set the debug level in Arduino IDE. If you see this message, your device memory is not enough for SSL client to work which required minimum free heap at least 100k. [ 18385][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():264]: (-32512) SSL - Memory allocation failed
[ 18386][E][WiFiClientSecure.cpp:144] connect(): start_ssl_client: -32512 Storing too deep or large amount of data in You should design your data structure to work with low memory environment in embedded device. |
Beta Was this translation helpful? Give feedback.
You should set the debug level in Arduino IDE.
If you see this message, your device memory is not enough for SSL client to work which required minimum free heap at least 100k.
Storing too deep or large amount of data in
FirebaseJson
andFirebaseJsonArray
is not recommend because it requires huge memory as it stored each key/value as object instead of string.You should design your data structure to work with low memory environment in embedded device.