Hi Pete, It’s been a whiiiiiile and I can tell I’m rusty… Are you still using this sketch? I don’t get any joy trying this on an 8266. Below is the error that comes up when I try compiling.
C:\Users\Surface\AppData\Local\Temp\arduino_modified_sketch_842165\Edgent_ESP8266.ino: In function 'void api_bridge(String, int, float)':
Edgent_ESP8266:66:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
66 | http.begin(server_path.c_str());
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
exit status 1
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
http.begin(server_path.c_str()); //line causing the error
Hi Dave, I’ve never really used this solution myself, except for testing, as I use Node-Red so do all my bridging in there.
As a short-term fix you could try downgrading your ESP core to the highest 2.xxx version - I suspect that will fix the issue.
I’m away at the moment, so when I get home next week I’ll do some testing and figure out a proper solution.
Hi Dave,
I might be off base here as I’m very much learning this coding stuff myself but I think the latest version of the HTTP client needs to have a WIFI client declared eg client (WIFI client library needs to be included). The http.begin statement is then http.begin(client, server_path.c_str()).
How could I forget you are the NR. @PeteKnight
I was determined that I would got that route but with the Blynk2 not being seamless w NR in the beginning I sat back waiting for it to get sorted out (because it was above my head to contribute ) How is it working by now is there a different add on to install in NR or is the existing updated?
I’ll give @Blynk_Coeur ‘a code a shot this evening. Looks like it is what the compiler is looking for…