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

Self-updating ( from WEB server HTTP ) OTA firmware for ESP8266 AND ESP32!

#68

@langtupt Please edit your post and remove the auth code. I have checked your code and it seems alright so I am not sure why it doesnt work for you. I am using a NodeMCU ESP-12 chip, what are you using?

0 Likes

#69

Yes, i have edit auth code, i using Wemos D1 Mini.

0 Likes

#70

@langtupt I am not sure what is wrong, can you check if all your libraries are updated (inside Arduino IDE)?

A few mins back I checked your OTA URL and the web server was throwing 500 errors, can you try hosting the bin file somewhere else (maybe sign up for a free hosting to test)?

0 Likes

#71

@langtupt HTTP Return Code of -1 is defined as a connection refused error in the ESP8266HTTPClient.h library - https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h
#define HTTPC_ERROR_CONNECTION_REFUSED (-1)

This means that the ESP8266 is unable to reach that server from its location, try hosting the file elsewhere and make sure that you can access the URL from a PC that is on the same network as the ESP8266.

1 Like

#72

Dear @samad909,
I’m try ip hosting it’s working now.
Thank you very much

1 Like

#73

Hi mikekgr

You help me last time with the OTA and it work fine at my ESP8266 and ESP32 on WiFi :slight_smile: Thanks

I like to upgraded my ESP32 WiFi to a ESP32 WiFi + SIM800 modem at hardware port 16/17 so the unit will work when its on a WiFi, it know or use SIM800 to use the GSM net. Or just SIM800…

The routines for interfacing the SIM800 is easy and run perfect but make the combination with your routine make my hear gray :slight_smile: I fight with WiFiClient client; right now off and on, but that’s maybe not the only conflicts, can you please again :slight_smile: help me out here ? Thanks in advance…

0 Likes

#74

This is the working code fon SIM800 …

[Unformatted code removed by moderator]

0 Likes

#75

use backticks else your sketch will be deleted ```

1 Like

#76

And backticks is ?

0 Likes

#77

Pete.

1 Like

#78

Sorry, Preben :slight_smile:

0 Likes

#79

you replied, but didn’t add backticks !! :joy::joy::joy:

1 Like

#80

Dear friend,
I have zero experiences in SIM800 so I can’t help you I am afraid…
Best Regards,
Mike Kranidis

0 Likes

#81

Hi Mike
This is a copy of your original ESP32 from 17. april …
When I run this to my NodeMCU-32S is come with a error:

[

Byt what´s missing ?

Thanks again :slight_smile:

( [Blynk_Coeur] Sorry if the backticks !! is missing I don´t know how to use them … Please tell me)

1 Like

#82

It’s all explained here:

Triple backticks look like this:
```
so if you don’t have this symbol on your keyboard you can simply copy and paste them at the beginning and end of your code.

Pete.

0 Likes

#83

ALT + 96 :wink:
This is an accent grave: ` for Frenches :smile:

2019-06-14_181036

1 Like

#84

Thanks Pete, I will newer forget the ``` again :slight_smile:

3 Likes

#85

Please post your sketch here ( property formated with leading and trailing back ticks ) to see what’s wrong and you get error…

0 Likes

#86

How to get the URL http://xmediavn.com/update/1.bin. Where to register or write

0 Likes

#87

That’s the url to the webserver where you’ve put your compiled code (the .bin file).
If you haven’t set-up your own publicly accessible webserver, or haven’t signed-up to a web hosing service that provides a webserver for you to use, then this OTA method probably isn’t for you.

Pete.

1 Like