-
Notifications
You must be signed in to change notification settings - Fork 492
Including FirebaseArduino and ArduinoJson causes redefinition errors #246
Comments
FirebaseArduino includes support for ArduinoJson. Simply include FirebaseArduino and create JSON data following the encoding procedure explained in the ArduinoJson documentation. |
@jason7sc you saved me. I was also adding |
Hello, i am using nodemcu and firebase for my project. i tried only -> #include <ESP8266WiFi.h> this code. i have problems including the <FirebaseArduino.h> library i tried inclding ArduinoJson library seperately. also tried it on win 7, win 8.1, and win 10. |
Same as #314 Please download latest stable ArduinoJson from library manager. |
Starting with #296 ArduinoJson is no longer included in Firebase-arduino, you should choose your own version of ArduinoJson, as stated in main README: https://github.com/firebase/firebase-arduino |
@kotl thank you. Looks like ArduinoJson library that I was using previously, was the problem. |
Marking this as fixed now that |
Hello all, #include <ESP8266WiFi.h> #define FIREBASE_HOST "testflorinm.firebaseio.com" I must include something else? The response in serial monitor is this one: Can someone help me with this? |
// Firebase data |
#define FIREBASE_HOST "XXXX.firebaseio.com" are defined but the answer from firebase is the same. |
@microflorin this seems similar to #357 can you provide more details about the failure and comment there? For example try to turn-on HTTP debugging: |
Hello all, how to solve this problem in nodemcu esp8266 to firebase: C:\Users\poex\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In constructor 'FirebaseObject::FirebaseObject(const char*)': json_ = buffer_.get()->parse(&data_[0]);
exit status 1 thank you |
Remove your previous ArduinoJson library and Include your ArduinoJson library to this https://github.com/bblanchon/ArduinoJson . It will work! |
hi, i am a new coder and working on a project on NodeMCU on arduino IDE to work with firebase. I have followed a youtube tutorial exactly the way they did it and have included ArduinoJson library (ver 5.13.1) and ArduinoFirebase library but i am getting error compiling my ESP8266, with some very long error messages. My code is as below. If i exclude the Json library, it compiles and connects to internet but fails to send the data to firebase. However, when i include the Json library i get error compiling. Can someone please help me regarding this `#include <ArduinoJson.h> #define FIREBASE_HOST "https://try-to-send-data.firebaseio.com/" long randNumber; void setup() { Serial.begin(9600); void loop() { }` |
i just erase this library #include <ArduinoJson.h> and my arduino ide can compile properly |
Hi all,
I am working on a project that uses both FirebaseArduino and ArduinoJson libraries.
When I try to include
ArduinoJson.h
I get the the error that it has already been included in\path-to-libs\firebase-arduino\src\third-party\arduino-json-5.3\include\ArduinoJson\etc
Is there a nice way to use these two libraries together? At the moment I am including
FirebaseArduino.h
where I need to useArduinoJson.h
which is not a particularly nice solution.Thanks!
The text was updated successfully, but these errors were encountered: