firebase-arduino icon indicating copy to clipboard operation
firebase-arduino copied to clipboard

Getting kFirebaseFingerprint Error

Open Karandalwani opened this issue 3 years ago • 39 comments

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).

Karandalwani avatar Jun 09 '21 07:06 Karandalwani

image

Getting the same error for me too

eswaranadh avatar Jun 09 '21 13:06 eswaranadh

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.

YashHajare avatar Jun 09 '21 13:06 YashHajare

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

eswaranadh avatar Jun 09 '21 15:06 eswaranadh

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.

janaardhanan avatar Jun 28 '21 06:06 janaardhanan

thankyou so much, its very helpfull

ayrahamida avatar Jun 29 '21 15:06 ayrahamida

thanks a lot bro its working

VJBano avatar Aug 21 '21 09:08 VJBano

@YashHajare its very helpfull

aji-sanjaya avatar Sep 07 '21 04:09 aji-sanjaya

@YashHajare life saver thank you so much man

pama1999 avatar Sep 09 '21 22:09 pama1999

thank you @YashHajare

ala0541 avatar Sep 18 '21 11:09 ala0541

Thank You SOOOOO MUCHHH @YashHajare

fi69420 avatar Oct 05 '21 06:10 fi69420

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

yadavamitk221 avatar Oct 11 '21 12:10 yadavamitk221

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

step0035 avatar Oct 17 '21 05:10 step0035

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

hamid-kano avatar Dec 18 '21 21:12 hamid-kano

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

MariamBarseghyan avatar Feb 01 '22 19:02 MariamBarseghyan

Hey thanks a lot, this really helped a lot

MEDOGU avatar Feb 04 '22 18:02 MEDOGU

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

vilelalabs avatar Feb 18 '22 16:02 vilelalabs

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 !

judejp avatar Feb 21 '22 04:02 judejp

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.

jeeva-tj avatar Mar 21 '22 11:03 jeeva-tj

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: @.***>

yadavamitk221 avatar Mar 21 '22 13:03 yadavamitk221

thaks

MurtadhaAlobaidi avatar Mar 28 '22 21:03 MurtadhaAlobaidi

Thank you So much ! It worked.

swarnim-developer avatar Mar 29 '22 09:03 swarnim-developer

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

OsmanBahadirYlmz avatar Apr 11 '22 00:04 OsmanBahadirYlmz

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

poojari238 avatar Apr 27 '22 09:04 poojari238

Thankyou so much @YashHajare

Leomar-Eslabao avatar May 04 '22 12:05 Leomar-Eslabao

esp8266 2.7.X' by the esp8266 community.

where can i install it?

tonyhoang96 avatar May 09 '22 14:05 tonyhoang96

how to change the version of esp8266

VenomFate-619 avatar May 15 '22 17:05 VenomFate-619

Superb thanks!

doohma avatar May 16 '22 17:05 doohma

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??

vanisridhar102 avatar May 24 '22 09:05 vanisridhar102

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

doohma avatar May 24 '22 09:05 doohma

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

OscarHo1999 avatar Aug 02 '22 16:08 OscarHo1999