Giter Site home page Giter Site logo

ENOMEM, try to restart. Do not make to many id's (sokets) simultaneously! (or use a board with more ram about micropython-firebase-realtime-database HOT 4 CLOSED

ckoever avatar ckoever commented on June 3, 2024
ENOMEM, try to restart. Do not make to many id's (sokets) simultaneously! (or use a board with more ram

from micropython-firebase-realtime-database.

Comments (4)

b-madhukar avatar b-madhukar commented on June 3, 2024 1

Error

from micropython-firebase-realtime-database.

ckoever avatar ckoever commented on June 3, 2024

I was able to reproduce this error on the wokwi simulator.
The main reason for this error message should actually be the low RAM.

image

Normally this board should have <520KB RAM.
Instead it has "only" 120KB

image

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)

from micropython-firebase-realtime-database.

b-madhukar avatar b-madhukar commented on June 3, 2024

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

from micropython-firebase-realtime-database.

ckoever avatar ckoever commented on June 3, 2024

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)

image

If this code is running with bg=0 and id=x(0)
image

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..."

from micropython-firebase-realtime-database.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.