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

Terminate stream/firebase connection #399

Open
arlucio opened this issue Jan 15, 2019 · 2 comments
Open

Terminate stream/firebase connection #399

arlucio opened this issue Jan 15, 2019 · 2 comments

Comments

@arlucio
Copy link

arlucio commented Jan 15, 2019

So, in my code I start streaming changes using Firebase.stream("$address$"). I discovered that I can't use a WebServer to update device firmware while stream is running. If I comment the stream line on code, I can update it perfectly.

Is there a way to terminate the Stream or Firebase connection?

Would be nice to have a "Firebase.end()" or "Firebase.endStream" option on the API.

Anyone can help me with a workaround?

@arlucio arlucio changed the title Finish stream connection Terminate stream connection Jan 15, 2019
@arlucio arlucio changed the title Terminate stream connection Terminate stream/firebase connection Jan 15, 2019
@yhua537
Copy link

yhua537 commented Jan 20, 2019

Likely the heap is overflowed, I guess this is still up in the air as #375 and #28 still not implemented. I attempt to call end() with HttpClient, but it doesn't actually free the heap.

@Vayatoalla
Copy link

I am afraid I am suffering the same issue but with mqtt instead of a webserver, as I am trying to connect to Firebase keeping a connection to my mqtt server. But when the Firebase.Stream is started the connection to mqtt freezes my wemos with a: "Memory allocation of 16709 bytes failed".
Guess than definitly it is not possible to keep two connections with the ESP. Anyway I will ask :-): did anyone achieve it?.

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

No branches or pull requests

3 participants