Comments on: ESP32/ESP8266: MicroPython OTA Updates via PHP Server https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 21 May 2025 15:07:02 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Joseph https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-1046252 Wed, 21 May 2025 15:07:02 +0000 https://randomnerdtutorials.com/?p=109647#comment-1046252 My termiinal stucks and just showing that ..

>
OTA is 0
#13 ets_task(4020f540, 28, 3fff95a8, 10)

Is it available on ESP8266?

]]>
By: Nikolay Alexandrov https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-815348 Sat, 04 Feb 2023 21:12:50 +0000 https://randomnerdtutorials.com/?p=109647#comment-815348 Hi, nice project. I am testing it on ESP8266/Nodemcu v3.
There is a problem. When it finds updates, it starts downloading them and…gives an error. It doesn’t download anything, but it deletes the old file. The other problem is that it “finds” an update without me putting the program.py file on the server. The error it gives is the same:

Completed 5 cycles, checking for updates
There is an update available
Download an update
Backtracking (last last call):
File “main.py”, line 63, in
File “urequests.py”, line 116, in get
File “urequests.py”, line 60, in request
OSError: [Errno 103] ECONNABORTED

The firmware is the latest version, but I tested it with another and the result is the same.
The only difference from the example given is that my server is on a local computer, not a Raspberry. I don’t think that matters in this case.

Regards,
Nikolay Alexandrov

]]>
By: David Dempster https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-770807 Sun, 24 Jul 2022 08:29:42 +0000 https://randomnerdtutorials.com/?p=109647#comment-770807 Thank you for you regular messages you send out about IoT subjects.

Hello,
I’ve been reading your article about MicroPython OTA updates via PHP server.

https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#more-109647

Can I ask if you have tried this technique with a Raspberry Pi Pico-W ??
Do you know if there is a fundamental reason why the technique couldn’t be applied to a Pico-W?

Kind regards, David (Dempster)

]]>
By: Kody https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-752068 Tue, 24 May 2022 05:25:49 +0000 https://randomnerdtutorials.com/?p=109647#comment-752068 Hello
Do anyone have idea about OSError: [Errno 12] ENOMEM.
This occurs when esp32 sending the urequest to the php api.
Seems like it related to no sufficient memory according to my google.

]]>
By: Kody https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-751037 Sun, 22 May 2022 14:52:56 +0000 https://randomnerdtutorials.com/?p=109647#comment-751037 Hello.
Do you have idea why it always say ‘unable to reach internet’.
I tried to send get request to the php by using browser, it’s working.
If I tried to print out the exception, using print(Exception), it is [Error no 12] ENOMEM.

]]>
By: James https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-736430 Thu, 07 Apr 2022 13:59:45 +0000 https://randomnerdtutorials.com/?p=109647#comment-736430 In reply to Alain.

Here is a link to some good info on securing PHP servers: https://docs.php.earth/security/intro/#use-https

]]>
By: James https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-735317 Fri, 01 Apr 2022 14:10:39 +0000 https://randomnerdtutorials.com/?p=109647#comment-735317 In reply to David Flory.

Meant to reply to David before…

Thanks!

Main gives the error: ValueError: unknown config param (on line 42)

line 42: station.config(reconnects = 5)

This line seems to be the culprit. If I comment it out, the code works fine with all print statements firing when they should. Not sure if I really need the 5 reconnects.

]]>
By: James https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-735316 Fri, 01 Apr 2022 14:09:50 +0000 https://randomnerdtutorials.com/?p=109647#comment-735316 Thanks!

Main gives the error: ValueError: unknown config param (on line 42)

line 42: station.config(reconnects = 5)

This line seems to be the culprit. If I comment it out, the code works fine with all print statements firing when they should. Not sure if I really need the 5 reconnects.

]]>
By: rose https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-735277 Fri, 01 Apr 2022 08:54:35 +0000 https://randomnerdtutorials.com/?p=109647#comment-735277 You can have a file “doit.php”. In this file there are yours procedures to check the origin url, the mac address of the module, etc. to perform actions according to a code transmitted by $_GET. You can also add encryption of transmitted data.

]]>
By: rose https://randomnerdtutorials.com/esp32-esp8266-micropython-ota-updates/#comment-735275 Fri, 01 Apr 2022 08:45:43 +0000 https://randomnerdtutorials.com/?p=109647#comment-735275 In reply to Alain.

“htmlspecialchars()” is not about secure !
php.net/manual/fr/function.htmlspecialchars.php

]]>