Skip to content

Compilation error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url) #4

@shikata-1

Description

@shikata-1

Give me error in sketch. esp8266 core 3.1.2.Try with core 2.7.1 but again errors beyond my ability. All libraries is install

`C:\Users\usera\Documents\Arduino\Timer-Clock-program-for-the-ESP8266-master\TimerClock_31\TimerClock_31.ino: In function 'void TimerOnOff(int, int)':
C:\Users\usera\Documents\Arduino\Timer-Clock-program-for-the-ESP8266-master\TimerClock_31\TimerClock_31.ino:1152:15: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
1152 | http.begin(HTTPcommandOn[y]);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
C:\Users\usera\Documents\Arduino\Timer-Clock-program-for-the-ESP8266-master\TimerClock_31\TimerClock_31.ino:1165:15: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
1165 | http.begin(HTTPcommandOff[y - 10]);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions