FirebaseExtended / firebase-arduino

Arduino samples for Firebase.
Apache License 2.0
946 stars 494 forks source link

ESP8266 NodeMCU 1.0 (ESP-12E Module) error compiling #365

Open bolbol1994 opened 6 years ago

bolbol1994 commented 6 years ago

Error `C:\Users\Asus\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual std::string FirebaseHttpClientEsp8266::errorToString(int)':

C:\Users\Asus\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:83:11: error: 'errorToString' is not a member of 'HTTPClient'

return HTTPClient::errorToString(error_code).c_str();`

Code: `#include

include

const char ssid = "TP-Link_C5EA"; const char password = "............";

define FIREBASE_HOST ".............."

define FIREBASE_AUTH "..........."

WiFiClient client; void setup() {

Serial.begin(9600);

Serial.println(ssid); WiFi.begin(ssid, password);

        while (WiFi.status() != WL_CONNECTED) {
           delay(500);
               }

Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
Serial.println("connected") ; Firebase.setString("connected","true"); }

void loop() {

if (Serial.available() > 0){

String h = Serial.readStringUntil('>'); Firebase.setString("data",h); //delay(1000) ; //Serial.print("hello") ; Serial.flush(); }

}` Please could you help me. i can't resolve this problem I'am sure that the code is correct because is working in the pc of my friend and we test it. But it doesn't working in my pc. I try de test it many times with different libraries but I didn't find a solutions Thank you for your help.

engrhamzaliimran commented 6 years ago

download ArduinoJson-master lib zip file and add it to lib by following steps: Sketch->include lib>add .zip lib and remember to use 1.6.9 version of IDE of arduino it will compile I faced same problem this was the way i resolved it.

arnabGudu commented 5 years ago

Downgrade ArduinoJson to 5.13.1 Download FirebaseArduino library from https://github.com/FirebaseExtended/firebase-arduino.git

victorcassio commented 5 years ago

download ArduinoJson-master lib zip file and add it to lib by following steps: Sketch->include lib>add .zip lib and remember to use 1.6.9 version of IDE of arduino it will compile I faced same problem this was the way i resolved it.

I try do it, but the version 1.6.9. has no board "Node MCU 1.0 (ESP-12 Module)", it has only ArduinoBoard

khadeejaSalem commented 5 years ago

Downgrade ArduinoJson to 5.13.1 Download FirebaseArduino library from https://github.com/FirebaseExtended/firebase-arduino.git

I am using Arduinojson 5.13.1 and still have the same problem any, help?