Giter Club home page Giter Club logo

Comments (5)

mobizt avatar mobizt commented on June 16, 2024

I don't know.
You should debug it yourself.
You can use ping to check internet status.

from firebase-esp8266.

ProyectoOVO avatar ProyectoOVO commented on June 16, 2024

i made the question to ask if there can be some issues to have both functions at the same time, both are callback and both are in background working, so maybe they cannot work at the same time, that should explain why it works when the stream callback is alone.

from firebase-esp8266.

mobizt avatar mobizt commented on June 16, 2024

In ESP8266, the stream will be processed repeatedly in schedule functions then it should not have conflicts with others.

I can be memory issue.

You can use Firebase.runStream(); in loop to execute all stream tasks manually. The result will send to the Stream callback functions.

from firebase-esp8266.

ProyectoOVO avatar ProyectoOVO commented on June 16, 2024

ok i solved it! it was a payload size issue, thanks you so much. I have other question, sorry for being annoying, sometimes the token generation says something like "Token error: code: -135, message: NTP server time synching failed", how can i retry until i get token status = ready by code? i would like to avoid the system to continue working until the token part is ready, otherwise maybe restart the ESP to try again

from firebase-esp8266.

mobizt avatar mobizt commented on June 16, 2024

When server or root certificate was assigned (in ESP8266 only) or the auth method is access or custom token, library required valid time for certificate validation and jwt token signing.

If time was not set or synch when Firebase.begin was called, library will get the time from NTP server. This process may fail and reports the error for letting you know what's going on. The library will try to send new request to NTP sever every 10 seconds when no response from NTP server.

The Firebase.ready() reurns false during this. You can set your device time using configTime function and wait until your device time was set before calling Firebase.begin then the internal time synching process will be ignored.

from firebase-esp8266.

Related Issues (20)

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.