使用的是esp8266httpclient 库,但是使用 begin 函数的时候出现下面的报错,不知道怎么解决。希望有大佬能回答下。
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
使用的是esp8266httpclient 库,但是使用 begin 函数的时候出现下面的报错,不知道怎么解决。希望有大佬能回答下。
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
加上WiFiClient client;
然后这样使用http.begin(client, "url");