Comments (8)
This is incorrectly usage.
while (!Firebase.beginStream(fbdo, "/system/table_1/realtime"))
{
// Could not begin stream connection, then print out the error detail
Serial.println(fbdo.errorReason());
delay(1000); // Wait for a while before retrying
}
See the examples for how to use library properly.
from firebase-esp8266.
void handle_stream_data_firebase()
{
if (!Firebase.beginStream(fbdo, "/system/table_1/realtime"))
{
// Could not begin stream connection, then print out the error detail
Serial.println(fbdo.errorReason());
}
Firebase.setStreamCallback(fbdo, streamCallback, streamTimeoutCallback);
}
Thank you, I have edited the code to look like this. But why when esp32 just started, after "Connected to Firebase" it says "Data changed, turning on the light." while real-time data does not change
from firebase-esp8266.
During testing, I encountered many errors. I hope you can help. Thanks a lot
[ 10209][E][WiFiGeneric.cpp:1578] hostByName(): DNS Failed for manager-bida-default-rtdb.asia-southeast1.firebasedatabase.app
connection refused
[ 18242][E][WiFiGeneric.cpp:1578] hostByName(): DNS Failed for manager-bida-default-rtdb.asia-southeast1.firebasedatabase.app
stream timed out, resuming...
error code: -3, reason: not connected
from firebase-esp8266.
It is because of the internet problem.
from firebase-esp8266.
void handle_stream_data_firebase() { if (!Firebase.beginStream(fbdo, "/system/table_1/realtime")) { // Could not begin stream connection, then print out the error detail Serial.println(fbdo.errorReason()); } Firebase.setStreamCallback(fbdo, streamCallback, streamTimeoutCallback); } Thank you, I have edited the code to look like this. But why when esp32 just started, after "Connected to Firebase" it says "Data changed, turning on the light." while real-time data does not change
As for this problem, can you help me?
from firebase-esp8266.
It is library behavior for years. Did you never notice?
The stream response will be available since it was established because it is http get request in stream mode.
This library is obsoleted and will not support for help after this year.
You can move to use new library but it required the whole code changes
from firebase-esp8266.
Is the library's new stream processor good? . Thank you
from firebase-esp8266.
Read the library documentation thoroughly before use.
from firebase-esp8266.
Related Issues (20)
- ESP8266 is crashing while writing to firebase realtime database HOT 5
- soft wdt reset issue in esp8266 HOT 1
- I'm trying to read this data HOT 2
- WiFiClientSecure issue HOT 6
- Get Token status HOT 1
- issuse HOT 14
- BUG Token info: type = id token (GITKit token), status = on request HOT 1
- PLEASE HELP HOT 3
- [HELP] Cannot connect esp8266 and firebase. Compilation error: invalid conversion from 'int' to 'FirebaseConfig*' {aka 'firebase_cfg_t*'} [-fpermissive] HOT 1
- I've been getting a connection refused after a few seconds
- I've been getting a connection refused after a few seconds after connection to firebase HOT 1
- HELP : Executed HTTPS and connection Firebase HOT 2
- HELP :: captivePortal and firebase connection HOT 4
- BUG FirebaseESP8266.h with version @^4.4.12 of Library HOT 4
- FirebaseJson is confilcted with json inside ESP8266WebServer library HOT 6
- HELP
- Content Available for FCM_HTTPv1_JSON_Message HOT 1
- Unable to Fetch Data from Firebase
- Wi-Fi Reset Doesn't Initialize Firebase Variables and LED Status Doesn't Update Post-Reconnection HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-esp8266.