I think you’d be better starting with a non-edgent sketch and adding-in Blynk.Air OTA like this…
Hi there,
here is the minimal code (extracted from OTA.h) i found working to integrate .Air OTA within blynk script quickly without the need for Edgent sketch, hope that helps somebody:
#include <Update.h>
#include <HTTPClient.h>
//________________________________________________________________
String overTheAirURL = "";
BLYNK_WRITE(InternalPinOTA) {
overTheAirURL = param.asString();
HTTPClient http;
http.begin(overTheAirURL);
int httpCode = http.GET();
if (httpCode != HTTP_CODE_OK)…
You’ll see that Blynk.Air uses the HTTP client, so take care not to create conflicts with your HTTP client code.
Note that there currently appears to be a problem with Blynk.Air when using version 1.3.0 of the Blynk C++ library…
@vshymanskyy it seems that Blynk.Air has stopped working (at least for the ESP8266 - I’ve not tested any other boards) in the 1.3.0 library.
Here’s the tests I did…
Open Arduino IDE 1.8.19
Check that the ESP8266 core is up to date (3.1.2)
Downgrade Blynk library to 1.2.0
Open ESP8266 Edgent example (from the 1.2.0 library)
Add Template ID etc from an existing project
Select Wemos D1 Mini as my board type in the sketch
Upload to a new D1 Mini Pro
Provisioned device via app
Changed BLYNK…
Pete.