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

Report error when streaming loses connection. #179 #301

Open
maherahmed opened this issue Dec 2, 2017 · 9 comments
Open

Report error when streaming loses connection. #179 #301

maherahmed opened this issue Dec 2, 2017 · 9 comments
Milestone

Comments

@maherahmed
Copy link

After the last commit, do we have a function to detect when streaming losses connection? Or Shall I execute Firebase.stream(path) in the loop ?

Thanks,

@ed7coyne @proppy

@milinddhanke
Copy link

I need solution for same issue.

@proppy
Copy link
Contributor

proppy commented Jan 31, 2018

@maherahmed I'm currently running stream() in the loop (see #296 (comment)), we should update the streaming sample to reflect this (#301).

@maherahmed
Copy link
Author

@proppy so if the stream has an error it will restart automatically?

@milinddhanke
Copy link

milinddhanke commented Feb 19, 2018

No!!!! Stream will not restart automatically, if any non stream command like "Firebase.setInt(path);" will executed in the program it restart stream. Also during this command if the internet connection is not found whole program will slow down and it continuously forcing to execute this command only, why program slow down ????????

@milinddhanke
Copy link

i was trying to resolve this issue but i failed!!!!!!

@hixfield
Copy link

Is there a way to detect that the stream connection (socket) has been closed? I am willing to investigate and solve this issue, but any feedback / help / hints are welcome

@milinddhanke
Copy link

i am using mills and counting continuously after each 31 sec. whether stream running or not. i get an information about status of stream whether it is running or not. and if any non stream command like "Firebase.setInt(path);" will executed in the program it restart stream.

@proppy
Copy link
Contributor

proppy commented Jun 25, 2018

I think this should be fixed with #356? can you test?

@proppy proppy added this to the 0.2 milestone Jun 25, 2018
@MrSuhov
Copy link

MrSuhov commented Jul 25, 2018

SDK:2.2.1(cfd48f3)/Core:win-2.5.0-dev/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-10-g0c0d8c2)/BearSSL:94e9704

Still having an issue when Stream looses connection when router switches between LTE and 3G described here: #356

As a workaround I'm using an errorCounter and reboot my esp if it gets enormous:

if (Firebase.failed()) {
   Serial.println("streaming error");
   Serial.println(Firebase.error());
   errorCounter++;
 }
if (errorCounter > 10) reset_func();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants