firebase-arduino icon indicating copy to clipboard operation
firebase-arduino copied to clipboard

Error compiling for board NodeMCU 1.0 (ESP-12E Module).

Open JanbresGagaracruz opened this issue 4 years ago • 3 comments
trafficstars

In file included from C:\Users\katalepsy\Documents\Arduino\libraries\firebase-arduino-master\src/Firebase.h:30, from C:\Users\katalepsy\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:22, from C:\Users\katalepsy\Documents\Arduino\Home_Automation\Home_Automation.ino:3: C:\Users\katalepsy\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseObject.h:109:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see https://arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 109 | std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\katalepsy\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:22, from C:\Users\katalepsy\Documents\Arduino\Home_Automation\Home_Automation.ino:3: C:\Users\katalepsy\Documents\Arduino\libraries\firebase-arduino-master\src/Firebase.h:86:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see https://arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 86 | std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exit status 1

how to solve this

JanbresGagaracruz avatar Sep 21 '21 04:09 JanbresGagaracruz

https://github.com/FirebaseExtended/firebase-arduino/issues/516#issuecomment-850633214

littl3 avatar Sep 21 '21 22:09 littl3

https://github.com/FirebaseExtended/firebase-arduino/issues/525#issuecomment-894437470

littl3 avatar Sep 21 '21 22:09 littl3

The recommended solution is to roll back to the newest 5.x.x release of ArduinoJson:

1 - go to Sketch > Include Library > Manage Libraries... 2- Wait for the download to finish. 3- In the "Filter your search..." box, type "arduinojson". 4- In the search results, click on "ArduinoJson by Benoit Blanchon" 5- From the dropdown version menu, select "5.13.4". 6- Click "Install". 7- Wait for the installation to finish. 8- Click "Close'. The code should now compile.

AnwarKamel avatar Oct 28 '21 15:10 AnwarKamel