FirebaseExtended / firebase-arduino

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

Getting kFirebaseFingerprint Error #520

Open Karandalwani opened 3 years ago

Karandalwani commented 3 years ago
C:\Users\Karan\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&)': C:\Users\Karan\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\Karan\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9: C:\Users\Karan\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\Karan\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\Karan\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\Karan\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9: C:\Users\Karan\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\Karan\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\Karan\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\Karan\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&, const string&)': C:\Users\Karan\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\Karan\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9: C:\Users\Karan\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).

eswaranadh commented 3 years ago

image

Getting the same error for me too

YashHajare commented 3 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

eswaranadh commented 3 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Thank you @YashHajare, it's working

janaardhanan commented 3 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Thankyou so much @YashHajare , this is the only reply that solved my problem.

ayrahamida commented 3 years ago

thankyou so much, its very helpfull

VJBano commented 2 years ago

thanks a lot bro its working

aji-sanjaya commented 2 years ago

@YashHajare its very helpfull

pama1999 commented 2 years ago

@YashHajare life saver thank you so much man

ala0541 commented 2 years ago

thank you @YashHajare

fi69420 commented 2 years ago

Thank You SOOOOO MUCHHH @YashHajare

yadavamitk221 commented 2 years ago

can any one please give me link of esp8266 2.7.X library

step0035 commented 2 years ago

@yadavamitk221 go to Tools > board manager, find esp8266, then choose your version to install

hamid-kano commented 2 years ago

الف شكر لك صديقي فعلا جبتها .. اشتغل معي نظامي

MariamBarseghyan commented 2 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Hey thanks a lot, this really helped a lot

MEDOGU commented 2 years ago

Hey thanks a lot, this really helped a lot

vilelalabs commented 2 years ago

Using PlatformIO I couldn't find any 2.7.x version, but worked with 2.6.3! Thanks @YashHajare !

judejp commented 2 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Bro you the best, you solved my issue which with i was struggling for long. Keep up the good work of helping people out. Thanks @YashHajare !

jeeva-tj commented 2 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Respect bro.. Its working finally.

yadavamitk221 commented 2 years ago

Thanks bro for answer i got the solution 🤗

On Mon, 21 Mar 2022, 4:38 pm jeeva-tj, @.***> wrote:

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Respect bro.. Its working finally.

— Reply to this email directly, view it on GitHub https://github.com/FirebaseExtended/firebase-arduino/issues/520#issuecomment-1073765138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLMAUT2D4LFSBJPIPDK363VBBKENANCNFSM46LNQBEA . You are receiving this because you were mentioned.Message ID: @.***>

MurtadhaAlobaidi commented 2 years ago

thaks

swarnim-developer commented 2 years ago

Thank you So much ! It worked.

OsmanBahadirYlmz commented 2 years ago

you re great. i should have found this 1 messy hour before

poojari238 commented 2 years ago

Awesome..... It worked.... thanks a lot

Leomar-Eslabao commented 2 years ago

Thankyou so much @YashHajare

tonyhoang96 commented 2 years ago

esp8266 2.7.X' by the esp8266 community.

where can i install it?

VenomFate-619 commented 2 years ago

how to change the version of esp8266

doohma commented 2 years ago

Superb thanks!

vanisridhar102 commented 2 years ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

where i can install it??

doohma commented 2 years ago

please read previous comments: Tools > board manager, find esp8266, then choose your version to install

OscarHo1999 commented 1 year ago

@YashHajare i just wanna say thank you brother. you are the best

sameeroz commented 1 year ago

@YashHajare Thank uuuuuuuu so much broo

leojportes commented 1 year ago

Awesome bro. Thanks a lot @YashHajare

nithin2362 commented 1 year ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

This worked !!! Thanks dude :)

vibodhbhosure commented 1 year ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Solved my error, Thanks!

Gendiaaa commented 1 year ago

wooow thank you bro problem solved !

abdallah-alatta commented 1 year ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

great thank you bro ,work is done!!

eslam-hegazy commented 1 year ago

great thank you bro ,work is done!!

Aryaman-4 commented 1 year ago

Wonderful, I appreciate your assistance, my friend. The task has been successfully completed!

CNJAY1911 commented 2 weeks ago

Bro, Yesterday I got the same kinda error that got solved by doing the following. you might have installed 'esp8266 3.0.0', try changing it to 'esp8266 2.7.X' by the esp8266 community.

Thanks bro..saved my day