Comments on: ESP32/ESP8266 MicroPython Web Server – Control Outputs https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 09 Jan 2025 14:23:32 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-998554 Thu, 09 Jan 2025 14:23:32 +0000 https://randomnerdtutorials.com/?p=76664#comment-998554 In reply to William.

Hi.
The green Run button only runs the code. It doens’t upload it to your board.
You need to name your code as “main.py” and then save it to the ESP32. Only codes saved with the main.py name will run automatically on the board. Go to tools > Save as > MicroPython device (esp32) and save the file with the name main.py.
Regards,
Sara

]]>
By: William https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-998479 Thu, 09 Jan 2025 03:44:51 +0000 https://randomnerdtutorials.com/?p=76664#comment-998479 Hi Sara,
I have a ESP32 and I got to implement this code using Thonny IDE.

With Thonny IDE, I have implemented the esptool from espressif to install MicroPython on it and I got to copy these files showed above to the ESP32.

Using the “Run Script” function in Thonny IDE, these code run perfectly and I got to access it in my Cell phone.

But when I try to try to use this ESP32 alone with battery 3.3 V, not happening and the Wifi is not started.

It is look like that this code only works when I activate it through “Run Script” option.
How can I start this application automatically when I turn on the ESP32 ?

Congratulations for this Tutorial.

Thank you

]]>
By: chris https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-961508 Wed, 25 Sep 2024 22:07:28 +0000 https://randomnerdtutorials.com/?p=76664#comment-961508 client and server must be in same local network, how about via Internet ?

]]>
By: Chris https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-961503 Wed, 25 Sep 2024 21:53:49 +0000 https://randomnerdtutorials.com/?p=76664#comment-961503 this web server and client must be in same local network, right?
could control/get its state via Internet ? if not, what other protocol needs ?

]]>
By: Bruno Westermann https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-904992 Wed, 10 Apr 2024 21:35:19 +0000 https://randomnerdtutorials.com/?p=76664#comment-904992 In reply to Ian Marvin.

Could you provide your Code for that i think it would be of interest for a lot of people.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-843629 Thu, 29 Jun 2023 09:11:30 +0000 https://randomnerdtutorials.com/?p=76664#comment-843629 In reply to mark maddox.

Where are they hosted? Do you save them in the filesystem?
Are they on a website?
Regards,
Sara

]]>
By: mark maddox https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-843526 Wed, 28 Jun 2023 18:42:59 +0000 https://randomnerdtutorials.com/?p=76664#comment-843526 In reply to Sara Santos.

I’m using and esp32 with micropython

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-843517 Wed, 28 Jun 2023 18:02:25 +0000 https://randomnerdtutorials.com/?p=76664#comment-843517 In reply to Mark Maddox.

How are you serving the images?

]]>
By: Mark Maddox https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-843508 Wed, 28 Jun 2023 16:21:00 +0000 https://randomnerdtutorials.com/?p=76664#comment-843508 Hi Sara,
Great tutorial! Easy to follow and it works well.

Any idea on how to serve images? I’ve uploaded images, and the html debug gives a 200 code, but they don’t display…

Thanks

]]>
By: Michal https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/#comment-840509 Tue, 13 Jun 2023 09:27:36 +0000 https://randomnerdtutorials.com/?p=76664#comment-840509 After few minutes i open the website, i get this error: OSError: [Errno 104] ECONNRESET
Please how to solve that issue?

]]>