Good afternoon all
I am using a 8266-01 board, and I’m having a problem finding a resolution that I can understand!!! To the following error:
‘bool HTTPClient::begin(String)’ is deprecated (declared at C:\Users\Paul.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:174) [-Wdeprecated-declarations]
Here is a code snippet and I have tried to emphasise the line with the error http.begin(serverNameon);
I can see there’s an update has caused this problem and that I now need to change the code but I have looked at the number of articles and I’m struggling to make it compile without an error. I realise this is just a warning message as the code does still work, but obviously sometime soon it will stop working completely.
As always any assistance/example would be gratefully appreciated
Indeed – the compiler will always tell you in which file and line a certain warning or error was thrown, so you’re right to look there:
There it’s just marked as deprected but without error this time.
A little extra hint: The github page (and git in general) has this “Blame” button on the top right. You can then see which exact commit was responsible for changing a certain line. Shows in this case that the deprecation was marked an astonishing 6 years ago.