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


1 Like

Sorry, Preben :slight_smile:

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

1 Like

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

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

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.


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



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


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

How to get the URL Where to register or write

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.


1 Like

I us this code for update firmwarer, but some error
Checking for firmware updates.
MAC address: 30AEA48436F0
Firmware version URL: http://xxx/xxxxxx.version
Current firmware version: 2019081901
Available firmware version: 2019081902
Preparing to update
Guru Meditation Error: Core 1 panic’ed (Cache disabled but cached memory region accessed)
Guru Meditation Error: Core 1 panic’ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4014e6f0: bad00bad bad00bad bad00bad
i compiling bin file with arduino ide

sorry. i use interrupt, by dont DetachInterrupt before update.
insert DetachInterrupt, and update is work.

hello sir,
for this code any header files we have to include

see this:

Is it what are you looking for?

yes , sir

I understand these changes , two files which are esp32MACadress.bin file
esp32MACadress.version file
here .version file means what exactly please tell me.
Is that .ino file ? pleaser brief me about .version file

These are just file names… For simplicity you can change the file names in order not to use ESP MAC address (as it is now), you can call these two files as ex myproject.bin and myproject.version but this requires the change in the sketch logic ex not bases these two files in the ESP MAC address. You need to read and understood. See my first post here and the associated links…

ok thank you, sir I understand it

hello sir,
in my folder name" OTA_CHECK "I put two files that are:

and both versoin value are same
but i am getting error please tell me what is my fault


Checking for firmware updates.
MAC address: d8e01d49df00
Firmware version URL:
Firmware version check failed, got HTTP response code 404

Please check the existence of the *.version file and that you can access it from the network that the ESP is connected