Coder Social home page Coder Social logo

Comments (3)

mobizt avatar mobizt commented on May 24, 2024

Yu can debug the WiFi status by select debug level and see the serial message.

The issue is not from Firebase library but from somewhere in your ESP8266, WiFi library or Hotspot.

If you call Firebase.reconnectWiFi(true) then library will check the WiFi connection status for every Firebase call included stream, and if the WiFi connection failed, then call WiFi.reconnect() and wait for 3 seconds and check the WiFi status again before return false with connection lost reason if connection failed.

If you not call Firebase.reconnectWiFi(true), WiFi connection will not reconnect and Firebase call function returns false with connection lost reason.

Function WiFi.reconnect() of WiFi client library will handle AP reconnection and no guarantee for success.

No packets return from AP is difference case even WiFi connection status is OK.

I also test in the same way like this before even 5GHz to 2.4GHz repeater and know issues that unresolvable then I don't handle anything more than check status > try to connect then check status again for every Firebase call.

Other connection conflicts that may come from AP hangs and IP/DHCP restriction, no packet, WiFi radio interference and all possible things are unknown and are impossible to handle with the program.

from firebase-esp8266.

alvaroaguero55 avatar alvaroaguero55 commented on May 24, 2024

Thanks Mobizt, there is any flunction/flag (like Firebase.failed() of official library) to realize if Firebase connection is successfull?

I.e. with the official library you can do this if connection goes down:

if (Firebase.failed())
{
Serial.print("setting number failed:");
Serial.println(Firebase.error());
ESP.reset();
}

from firebase-esp8266.

mobizt avatar mobizt commented on May 24, 2024

You can track all error of all firebase calls status using firebaseData.errorReason() or firebaseData.httpCode().

You can check on readme on main page, src page and all the example sketches.

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.