NodeMCU ESP8266 kFirebaseFingerprint Error (Error Compiling For Board NodeMCU 1.0 )
ฝัง
- เผยแพร่เมื่อ 12 มิ.ย. 2021
- Hi,
Discussions:-
github.com/esp8266/Arduino/is...
Make sure:-
1. ESP8266 Board version is 2.7.4
2. Arduino Json Library Version is 5.x
Complete Error:
C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&)':
C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:50: error: no matching function for call to 'begin(const char*, const char [60])'
47 | http_.begin(url.c_str(), kFirebaseFingerprint);
| ^
In file included from C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:
C:\Users\TrickSumo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: candidate: 'bool HTTPClient::begin(String, uint16_t, String)' (near match)
166 | bool begin(String host, uint16_t port, String uri = "/") attribute ((error("obsolete API, use ::begin(WiFiClient, host, port, uri)")));
| ^~~~~
C:\Users\TrickSumo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: conversion of argument 2 would be ill-formed:
C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char*' to 'uint16_t' {aka 'short unsigned int'} [-fpermissive]
47 | http_.begin(url.c_str(), kFirebaseFingerprint);
| ^~~~~~~~~~~~~~~~~~~~
| |
| const char*
In file included from C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:
C:\Users\TrickSumo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: candidate: 'bool HTTPClient::begin(String, const uint8_t*)' (near match)
167 | bool begin(String url, const uint8_t httpsFingerprint[20]) attribute ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));
| ^~~~~
C:\Users\TrickSumo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: conversion of argument 2 would be ill-formed:
C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]
47 | http_.begin(url.c_str(), kFirebaseFingerprint);
| ^~~~~~~~~~~~~~~~~~~~
| |
| const char*
C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&, const string&)':
C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:51:60: error: invalid conversion from 'const char*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]
51 | http_.begin(host.c_str(), kFirebasePort, path.c_str(), kFirebaseFingerprint);
| ^~~~~~~~~~~~~~~~~~~~
| |
| const char*
In file included from C:\Users\TrickSumo\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:
C:\Users\TrickSumo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:168:70: note: initializing argument 4 of 'bool HTTPClient::begin(String, uint16_t, String, const uint8_t*)'
168 | bool begin(String host, uint16_t port, String uri, const uint8_t httpsFingerprint[20]) attribute ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Thank you for very good advise. Because I'm using old ESP8266 board, and probably it needs older version of board manager. Thanks again
😇😇😇
a big thank you from a Frenchman because I too have searched a lot
Glad it helped.
Big Thanks from ID🇲🇨
Welcome!
THANKYOUUU SO MUCHHH ! You saved my life
Welcome :)
thankyou so much sir you saved my 6 hrs
god bless you
I'm happy that it helped you :)
Thank you so much sir
Most welcome :)
Thanks my bro,You save my life !!
Glad it helped :)
thankyouu sir, it really help me. i have facing this error for 2 days
Glad to hear that :)
thanks Bro...Thank U so Much...I have been Facing this error for almost a day...I Surfed through the internet but I dint get any solution....Finally U came bro.......Really Working Bro
Really happy it helped you! Thank You!
this vid save my day, thanks a ton!
Welcome!!! Your comment made my day :)
Thank you sir you re really save my life
God bless you
Nice to know that you find it helpful :)
I am sincerely thankful
:)
I trying for this error in before 5 days. I can't find solution for this anyone. Now after i saw your video. Now i did it. Compile done. Your are a got. I waste more time because this error. Thank you very very much.
💪💪💪💪
Happy that it helped. Keep creating :)
thank you so much sir
sir now it is working
you saved to end of 10 days browsing for this sir
Glad it helped !!!
Thanks for your kind words :)
Bro can I know the finger print number
BIG THANKS TO YOU SIR 🙏 IT'S WORKED
You're welcome :)
Thank You So much
You're most welcome
Thank you, it worked!
Great!
Thankyouuuuu so much brodi
Happy to help :)
omg you are life saver T-T
😊
Thank you!
You're welcome!
thankyou so much bro
Welcome :)
it worked thanks it was very helpful
You're welcome!
Thanks sir! It's really work.
I am trying to resolve this error last 2 days but it's didn't solve ... Now it's solve ..
Welcome :)
The error occurs because of the Firebase Arduino library. You can try an alternative library to get rid of many fingerprint issues:- th-cam.com/video/nLzC0-VaqDs/w-d-xo.html&lc=UgzZsgxMbFPDcj5msuN4AaABAg
thank you so much...!!!!!!!!!!!!!!!!!!!!!!!!!
You're welcome!
Thanks you
Welcome :)
Thank you so much sir... Before watching your video, I nearly wasted two days :(
Happy to help
THANKYOUUU
You're Welcome :)
thanks brother 👍👌
Welcome 👍
Thank you brother.
You're Welcome :)
@@TrickSumo but im not receiving the LED_STATUS. Could i contact you?
Yes, feel free to mail me code with full error log.
Thank you so Much !!! you saved my life
You're welcome!
Thank you very much
You are welcome :)
Thank you so much❤
You're welcome 😊
thank you... you saved me from a hell
Glad I could help :)
thank you very much !!!
You are welcome!
thank you so much man......
you just ended my "all day pain in a$$" so much easily..!!!!!
😁
congrats is working now ..........1000 video streamed but non .........you are goood
Executable segment sizes:
IROM : 333000 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27268 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1404 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 2088 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25128 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 363760 bytes (34%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28620 bytes (34%) of dynamic memory, leaving 53300 bytes for local variables. Maximum is 81920 bytes.
Awesome :)
thanksssssssss
Welcome :)
Thank you 😊 so 😘 much sir 🙏 save in my time 🫂
Glad it helped you 😊
Bro can you please tell me the finger print number used here?
am about to test mine if everything works i will click the bell icon .......is 5days now of depression and headache
glad to know it helped!!!
you save me
Bro please help me I try for 1 hour I have done everything correctly and I still have the same error !!!!!
I have to do what?
Hi
Is issue resolved?
Getting same error as in this video?
If possible, please share complete error.
can't search esp8266 in the library as of now, can you help me bro?
Hi
Make sure to add URL in preferences:- th-cam.com/video/AaWbRhCl0XI/w-d-xo.html
Hi bro,
Can you help me?
C:\Users\HP\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseError.h:12:1: error: expected ',' or ';' before 'class'
class FirebaseError {
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Hi
Are you sure the code you are uploading to NodeMCU is correct? Mail me if possible.
@@TrickSumo Thanks bro, i made it already
Awesome!!!
how to getString with this version??
Hi
Use:- Firebase.getString(firebaseData, "S1");
Refer to my reply on this page:- gist.github.com/TrickSumo/ae215a3b81e3e07a62e9689a9d8795a0
#include
#include
#define FIREBASE_HOST "" //Your Firebase Project URL goes here without "http:" , "" and "/"
#define FIREBASE_AUTH "" //Your Firebase Database Secret goes here
#define WIFI_SSID "" //WiFi SSID to which you want NodeMCU to connect
#define WIFI_PASSWORD "" //Password of your wifi network
// Declare the Firebase Data object in the global scope
FirebaseData firebaseData;
String val1;
String zero = "0" , one = "1";
void setup()
{
Serial.begin(115200);
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.print('
');
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.reconnectWiFi(true);
delay(1000);
}
void loop()
{
Firebase.getString(firebaseData, "S1");
val1 = firebaseData.stringData();
Serial.print('
');
Serial.print("Value 1- ");
Serial.println(val1);
delay(1000);
}
@@TrickSumo thank you very much
Your Welcome :)
its not working
help me
Hi Rohan,
Can you share your code, maybe I can help ...
not working, not helping
Hi
Your error is similar or something else?
You can share the code and error, maybe I can help...
Thank you so much sir
Most welcome