ENOMEM, try to restart. Do not make to many id's (sokets) simultaneously! (or use a board with more ram
Closed this issue · 4 comments
Hello , I am trying your code on Wokwi ESP32 Micopython simulator .
while executing facing issue "Do not make to many sockets".
Can you please check it once .
I was able to reproduce this error on the wokwi simulator.
The main reason for this error message should actually be the low RAM.
Normally this board should have <520KB RAM.
Instead it has "only" 120KB
If i find the time, i will try to program a version for boards with less ram. But currently I'm working on version 2 (Beta)
Thanks for the fast reply @ckoever
May i know why it is showing as too many sockets.
Can't we change the code to not produce more number of sockets
Normally this error occures only if the functions runs in background (with bg=1, in documentation) where you can but not have to generate more then 1 socket.
firebase.put(..., bg=1, id=0)
firebase.put(..2, bg=1, id=1)
firebase.get(..., bg=1, id=0)
If this code is running with bg=0 and id=x(0)
This is the reason why sometimes the RAM of some Micropython Boars is not enough.
But i change the error text to "if you use more sockets simultaneously..."