Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

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

Open
@bolbol1994

Description

@bolbol1994

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 <ESP8266WiFi.h>
#include <FirebaseArduino.h>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions