Open doabigcheese opened 3 years ago
exit status 1
Compilation error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
I have fixed my code by using this: //add this to top
WiFiClient wifiClient;
//where find the error their: http.begin(wifiClient, url);
Thanks to @doabigcheese for sharing 👍
C:\Users\user\Documents\Arduino\libraries\FHEM\src\FHEM.cpp: In member function 'void FHEM::PrepareClient(String)': C:\Users\user\Documents\Arduino\libraries\FHEM\src\FHEM.cpp:83:14: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url) 83 | client.begin(URL); |
~~^~~ exit status 1localy fixed with: on top add:
include
WiFiClient wifiClient;
line 110: client.begin(wifiClient,URL);