Skip to content

Commit

Permalink
Update RTDB stream examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jun 22, 2023
1 parent 3461204 commit 77370ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/RTDB/DataChangesListener/Callback/Callback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,12 @@ void loop()
// Server was disconnected!
}
}

// To pause stream
// stream.pauseFirebase(true);
// stream.clear(); // close session and release memory


// To resume stream with callback
// stream.pauseFirebase(false);
// Firebase.RTDB.setStreamCallback(&stream, streamCallback, streamTimeoutCallback);
10 changes: 10 additions & 0 deletions examples/RTDB/DataChangesListener/MultiPath/MultiPath.ino
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,13 @@ void loop()
// Server was disconnected!
}
}


// To pause stream
// stream.pauseFirebase(true);
// stream.clear(); // close session and release memory


// To resume stream with callback
// stream.pauseFirebase(false);
// Firebase.RTDB.setMultiPathStreamCallback(&stream, streamCallback, streamTimeoutCallback);

0 comments on commit 77370ef

Please sign in to comment.