Comments (5)
The new version of library is ready for update.
With the new version, your code can be
FirebaseJson &json = firebaseData.jsonObject();
FirebaseJsonData data;
json.get(data, "startA");
if (data.success && data.type == "int")
startA = data.intValue;
json.get(data, "endA");
if (data.success && data.type == "int")
endA = data.intValue;
json.get(data, "sunA");
if (data.success && data.type == "int")
sunA = data.intValue;
json.get(data, "monA");
if (data.success && data.type == "int")
monA = data.intValue;
json.get(data, "tueA");
if (data.success && data.type == "int")
tueA = data.intValue;
json.get(data, "wedA");
if (data.success && data.type == "int")
wedA = data.intValue;
json.get(data, "thuA");
if (data.success && data.type == "int")
thuA = data.intValue;
json.get(data, "friA");
if (data.success && data.type == "int")
friA = data.intValue;
json.get(data, "satA");
if (data.success && data.type == "int")
satA = data.intValue;
json.get(data, "tempA");
if (data.success && data.type == "int")
tempA = data.intValue;
from firebase-esp8266.
FirebaseJson.cpp contains error.
Check line 496.
case JSMN_PRIMITIVE:
strcpy_P(tmp, FirebaseJson_STR_7);
if (strcmp(_jsonObj.stringValue.c_str(), tmp) == 0)
{
typeSet = true;
_jsonObj.boolValue = true;
strcpy_P(buf, FirebaseJson_STR_15);
}
else
{
memset(tmp, 0, 20);
strcpy_P(tmp, FirebaseJson_STR_6);
if (strcmp(_jsonObj.stringValue.c_str(), tmp) == 0)
{
typeSet = true;
_jsonObj.boolValue = false;
strcpy_P(buf, FirebaseJson_STR_15);
}
}
from firebase-esp8266.
@Gizmodo, thanks for your contributions and pull request.
As I said that the library is nearly finish the update but from stress test, the library can occasionally cause the stack overflow on ESP8266 but works well on ESP32. Here is the FirebaseJson library that is the part of this Firebase library.
The next update was delayed. You can pull the request again to fix the current issue.
from firebase-esp8266.
@mobizt PR is ready.
from firebase-esp8266.
Thanks, I merged it.
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
- ERROR CODE: -3, REASON: NOT CONNECTED STREAM TIMED OUT, RESUMING... HOT 8
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.