Urgent Help- I am still facing the below issue though i installed the ArduinoJson (6.10.0) to working with ESP8266 & DHT11

Kh Nuba's picture

Offline

Joined: Mar 22, 2019

Replies: 2
Urgent Help- I am still facing the below issue though i installed the ArduinoJson (6.10.0) to working with ESP8266 & DHT11
April 7, 2019 - 12:00am

In file included from C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\src/Firebase.h:30:0, from C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:22, from C:\Users\Nuba\Documents\Arduino\TempHumidityDataToFirebase\TempHumidityDataToFirebase.ino:3: C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\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 std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_; ^ In file included from C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:22:0, from C:\Users\Nuba\Documents\Arduino\TempHumidityDataToFirebase\TempHumidityDataToFirebase.ino:3: C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\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 Error compiling for board NodeMCU 1.0 (ESP-12E Module).

Kh Nuba's picture

Offline

Joined: Mar 22, 2019

Replies: 2
Need urgent help
April 7, 2019 - 12:12am

i'd like to provide more details regarding my first post. 

I installed lattest version of ArduinoJson (6.10.0) library and include the following in my ino program

#include <ArduinoJson.h>
#include <ESP8266WiFi.h>                                                   
#include <FirebaseArduino.h>                                               
#include <DHT.h>
 #include <Adafruit_Sensor.h>

But the following error is occured and cant resolve.

In file included from C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\src/Firebase.h:30:0,
                 from C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:22,
                 from C:\Users\Nuba\Documents\Arduino\TempHumidityDataToFirebase\TempHumidityDataToFirebase.ino:3:
C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\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
     std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
           ^
In file included from C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:22:0,
                 from C:\Users\Nuba\Documents\Arduino\TempHumidityDataToFirebase\TempHumidityDataToFirebase.ino:3:
C:\Users\Nuba\Documents\Arduino\libraries\firebase-arduino-master\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
Error compiling for board NodeMCU 1.0 (ESP-12E Module).