Error compiling for board ESP32 Dev Module

Hello,
I'm using the ESP32 board to send data through google firebase. But I got one error every time:
Error compiling for board ESP32 Dev Module.
Please help me to solve this one, I attached my code below.

#include <WiFi.h> // esp32 library
#include <IOXhop_FirebaseESP32.h> // firebase library

#define FIREBASE_HOST " " // the project name address from firebase id

#define FIREBASE_AUTH " " // the secret key generated from firebase

#define WIFI_SSID "name" // input your home or public wifi name

#define WIFI_PASSWORD "name" //password of wifi SSID

String fireStatus = ""; // led status received from firebase

int led = 2;

void setup() {

Serial.begin(9600);

delay(1000);

pinMode(2, OUTPUT);

WiFi.begin(WIFI_SSID, WIFI_PASSWORD); //try to connect with wifi

Serial.print("Connecting to ");

Serial.print(WIFI_SSID);

while (WiFi.status() != WL_CONNECTED) {

Serial.print(".");

delay(500);

}

Serial.println();

Serial.print("Connected to ");

Serial.println(WIFI_SSID);

Serial.print("IP Address is : ");

Serial.println(WiFi.localIP()); //print local IP address

Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); // connect to firebase

Firebase.setString("LED_STATUS", "OFF"); //send initial string of led status

}

void loop() {

Firebase.setFloat("number", (millis()/1000));
delay(100);

}

exit status 1
Error compiling for board ESP32 Dev Module.

Not a secret any more.

There should be more to the error message. Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

Enable Show verbose output during compile in the IDE Files, Preferences menu to show more about the error.

Thanks for the reply.
Here is the error message.

Arduino: 1.8.14 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

In file included from C:\Users\ABHIJIT\Documents\Arduino\libraries\IOXhop_FirebaseESP32-master/IOXhop_FirebaseESP32.h:8:0,

             from C:\Users\ABHIJIT\Desktop\IAQ_August 2021\After 15th Aug\26th another testcode for firebase\Firebase_check_aug26a\Firebase_check_aug26a.ino:3:

C:\Users\ABHIJIT\Documents\Arduino\libraries\IOXhop_FirebaseESP32-master/IOXhop_FirebaseStream.h:14:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see Redirecting… to learn how to upgrade your program to ArduinoJson version 6

StaticJsonBuffer<STREAM_JSON_BUFFER_SIZE> jsonBuffer;

       ^

In file included from C:\Users\ABHIJIT\Documents\Arduino\libraries\IOXhop_FirebaseESP32-master/IOXhop_FirebaseESP32.h:8:0,

             from C:\Users\ABHIJIT\Desktop\IAQ_August 2021\After 15th Aug\26th another testcode for firebase\Firebase_check_aug26a\Firebase_check_aug26a.ino:3:

C:\Users\ABHIJIT\Documents\Arduino\libraries\IOXhop_FirebaseESP32-master/IOXhop_FirebaseStream.h:65:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see Redirecting… to learn how to upgrade your program to ArduinoJson version 6

return StaticJsonBuffer<STREAM_JSON_DATA_BUFFER_SIZE>().parseObject(_data);

       ^

exit status 1

Error compiling for board ESP32 Dev Module.

There were quite a few changes between ArduinoJson 5.0 and ArduinoJson 6.0. You may have to re-write part of the library. ArduinoJson v6 has an "Assistant" that can write the code for you given the JSON document:

1 Like

@abhies, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.

Can you please edit your opening post, select all code and click the </> button to apply code tags and next save your post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code. See How to get the best out of this forum

Thanks for your suggestion, It is worked properly now.