Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

ESP8266 can not reconnect to firebase #406

@Newsoul693

Description

@Newsoul693

I connected to Firebase successfully, can read data from firebase when data changed normaly. But when I decide to unplug the network cable (in this case, wifi.status() still connecting to wifi but can not access the internet) then plug it again , I can not read data changed anymore, It can not enter the condition Firebase.available() and can not enter the condition Firebase.failed() too. Can somebody give me an idea to solve this? Without manually reseting the ESP8266. I know this issue is related to #388 but I can't sovle this problem. Thanks!
Here is my short code:
Firebase.begin(address.c_str(), auth.c_str()); Firebase.stream("/Led"); } void loop() { if (Firebase.available() == true) { FirebaseObject event = Firebase.readEvent(); String path = event.getString("path"); String data = event.getString("data"); Serial.println(path); Serial.println(data); } if (Firebase.failed()) { Serial.println("streaming error"); Serial.println(Firebase.error()); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions