-
Notifications
You must be signed in to change notification settings - Fork 492
update required for arduinoJSON v6.xx apis #426
Comments
Actually Json 6.* are still in beta, so right now it looks reasonable to use json 5.* and wait for a release of 6.* |
Hi @MrSuhov , |
Wow! I was not up to date) |
Hi Getting error:-
Please update this library. Thanks |
Hi @TrickSumo , |
Ok, Its working now. Thanks sdk156. |
Hi, If you want to support both branches of ArduinoJson, you can check ARDUINOJSON_VERSION_MAJOR: #if ARDUINOJSON_VERSION_MAJOR == 6
// code for v6
#else
// code for v5
#endif Alternatively, if you don't want to depend on the version installed on the user's computer, you can embed the library with the source code of firebase-arduino. Simply download ArduinoJson-v5.13.5.h in Regards, |
after the update, the same error is occurring
C:\Users\admin\Documents\Arduino\libraries\firebase-arduino-0.3\src/FirebaseObject.h:109:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
In file included from C:\Users\admin\Documents\Arduino\libraries\firebase-arduino-0.3\src/FirebaseArduino.h:22:0,
C:\Users\admin\Documents\Arduino\libraries\firebase-arduino-0.3\src/Firebase.h:86:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
exit status 1 |
Thank u so much you saved my project |
Hi, I'm using Arduino_JSON v6.9.0 (stable). In my code both the version v5 and v6 required. In one piece of function the v6 required, not v5, but for firebase, v5 required. What to do? |
arduinoJson v6 apis have implemented some changes in using JsonBuffer and JsonObject classes.
The text was updated successfully, but these errors were encountered: