You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
I'd like to propose a simple way to handle streaming, instead of having explicit stream methods, it could just an option of begin(), a different variant beginStream or even a FirebaseStream global object.
void setup() {
Firebase.begin();
}
void loop() {
Firebase.stream('/foo'); # consume one event from the stream
if (Firebase.error()) { # check for erros
// ...
}
if (Firebase.changed(/'bar')) { # check if /foo/bar changed
int foo = Firebase.getInt('/bar'); # get foo/bar updated value
}
}
@proppy
if (Firebase.changed(/'bar')) { # check if /foo/bar changed
int foo = Firebase.getInt('/bar'); # get foo/bar updated value
}
what different size data between .changed and .get ?? same download or not ?
Thanks
I'd like to propose a simple way to handle streaming, instead of having explicit stream methods, it could just an option of
begin()
, a different variantbeginStream
or even aFirebaseStream
global object.stream an int value
stream a more complex object
This could also mix well with #160 to stream from a specific path.
The text was updated successfully, but these errors were encountered: