BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

[SOLVED] Blynk and wifi OTA Program updates?

Hi all!

Has anybody tried Blynk and OTA (over the air) updates for ESP8266 or NodeMCU?

Andreas

Yes we update our ESP-07 and WeMos Mini Blynk sketches OTA.

Costas do you have a sample setup()?

(are you in Greece?)

@vactirio are you using the Arduino IDE as the examples come from there?

Cyprus not Greece.

Yes I use the examples.

My hw is nodemcu 1.0

Question:
My main concern/question is who is making the wifi authentication on the setup

  • BLYNK setup()
    WiFi.begin(ssid, password);

or

  • OTA commands in the setup
    Blynk.begin(auth, ssid, password);

Andreas

@vactirio almost all our sketches use WiFiManager so the WiFi authentication takes place with this function.

So we use:

  Blynk.config(auth);
  Blynk.connect(3333);  // timeout set to 10 seconds and then continue without Blynk
  while (Blynk.connect() == false) {
    // Wait until connected
  } 

However I am not sure how the WiFi authentication you refer to relates to OTA, perhaps I am missing something?

Yes, it is possible. I’ll post some info later…

Thank you!

I was missing the existence of

Blynk.config(auth);

Andreas

Did you get OTA working?

Yes I did thx!

I think, this post it is a nice place to post the code for the OTA so other users can have it as reference…

I dont want to post mine as I am not sure it is done correctly.

Andreas

Hello everyone. Can some one explain how to get started with OTA esp-nodmcu and blynk?
For example i need to flash some sketch remotly, what should i need? Http server? Compiled binary? Any electric commutation for that? May be there is a step-by-step toturial?
Thanks for possible answers )))

@zara there is a detailed thread on the site, search for “OTA” without the quotation marks.

2 posts were split to a new topic: Https://examples.blynk.cc