-
Notifications
You must be signed in to change notification settings - Fork 492
FirebaseArduino: allow mixing stream and non-stream commands #294
Conversation
With this change non-streaming operation will stop the stream and reuse the underlying http client. Call FirebaseArduino::stream again in order to reuse the stream. Fixes: FirebaseExtended#48
I have reviewed this change and it looks good to me. thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, this should properly close connection or reuse existing one as well as resume streaming.
Great solution @proppy, thanks for fix it. |
@Xmanu12 did you try calling |
thanks for your faster answer @proppy. |
As I use Firebase.stream("/listening_path"); at beginning of the void loop every thing is working properly, though I use some non stream commands in loop. Thanks friends. |
please @proppy tell us what do you mean by simple example |
Hi friends, here is my code, working properly, though I use some non stream commands in loop. #include <FirebaseArduino.h> void setup() { void loop() { if (Firebase.available()) {
|
@milinddhanke the same issue here |
Hello friends please help me to resolve my problem |
With this change non-streaming operation will stop the stream and
reuse the underlying http client.
Call FirebaseArduino::stream again in order to reuse the stream.
This is similar to what @ed7coyne did in the
contrib/modem
/cc @salqadri @kotl
Fixes: #48 #266