Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error ESP8266 connect with firebase, I changed the esp8266 version to 2.7.4 and change the httpclient still have some problem #559

Open
L3WD35 opened this issue Mar 1, 2023 · 1 comment

Comments

@L3WD35
Copy link

L3WD35 commented Mar 1, 2023

c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In member function 'bool FirebaseObject::isNullString(const String&) const':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:71:57: warning: 'const char* ArduinoJson::Internals::JsonVariantCasts::asString() const [with TImpl = ArduinoJson::JsonVariant]' is deprecated (declared at c:\Users\super\OneDrive\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/../JsonVariantCasts.hpp:28): use as<char*>() instead [-Wdeprecated-declarations]
return variant.is<const char >() && variant.asString() == NULL;
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In member function 'ArduinoJson::JsonVariant FirebaseObject::getJsonVariant(const String&) const':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:91:26: warning: 'ArduinoJson::JsonObject& ArduinoJson::Internals::JsonVariantCasts::asObject() const [with TImpl = ArduinoJson::JsonVariant]' is deprecated (declared at c:\Users\super\OneDrive\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/../JsonVariantCasts.hpp:23): use as() instead [-Wdeprecated-declarations]
json = json.asObject().get(start);
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp: In member function 'void FirebaseStream::startStreaming(const string&, const string&, const string&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp:91:48: warning: deprecated conversion from string constant to 'char
' [-Wwrite-strings]
analyzeError("STREAM", status, path_with_auth);
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'String FirebaseArduino::push(const String&, const ArduinoJson::JsonVariant&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:65:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
int status = req_.get()->sendRequest(host_, auth_, "POST", path.c_str(), buf);
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'void FirebaseArduino::set(const String&, const ArduinoJson::JsonVariant&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:94:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
req_.get()->sendRequest(host_, auth_, "PUT", path.c_str(), buf);
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'void FirebaseArduino::getRequest(const String&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:101:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
req_.get()->sendRequest(host_, auth_, "GET", path.c_str());
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'virtual void FirebaseArduino::remove(const String&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:147:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
req_.get()->sendRequest(host_, auth_, "DELETE", path.c_str());
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'virtual const String& FirebaseArduino::error()':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:201:33: warning: returning reference to temporary [-Wreturn-local-addr]
return error_.message().c_str();
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:50: warning: 'bool HTTPClient::begin(String, String)' is deprecated (declared at C:\Users\super\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:177) [-Wdeprecated-declarations]
http_.begin(url.c_str(), kFirebaseFingerprint);
^
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&, const string&)':
c:\Users\super\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:51:80: warning: 'bool HTTPClient::begin(String, uint16_t, String, String)' is deprecated (declared at C:\Users\super\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:178) [-Wdeprecated-declarations]
http_.begin(host.c_str(), kFirebasePort, path.c_str(), kFirebaseFingerprint);
^

@TrickSumo
Copy link
Contributor

In case anyone face same problem in future, downgrading ESP8266 board and ArduinoJSON library is only option as of now (September 2023).
Steps to do same:- https://www.youtube.com/watch?v=m3Xb9GB9SI8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants