Тёмный

ESP32 MicroPython pro-tip: Use WebREPL within Thonny 

Bhavesh Kakwani
Подписаться 841
Просмотров 5 тыс.
50% 1

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@simplestuffmatters
@simplestuffmatters 8 месяцев назад
Sooooo much better than the switching between editor and browser. Am new to the whole micropython eco system and did not know Thonny either. Thank you for this brief and clear tutorial. will check out your channel for more.
@spaceslothinspace8163
@spaceslothinspace8163 9 месяцев назад
Simple and straightforward. Awesome tutorial!
@DJNilu
@DJNilu 2 года назад
Yesss loving these tutorials!!
@unrealcompanymusic
@unrealcompanymusic 2 года назад
needed this! great upload!!
@nandathakur3642
@nandathakur3642 2 года назад
Wonderful tutorial ❤
@waterjoe2024
@waterjoe2024 Месяц назад
❤❤
@MladenBruck
@MladenBruck 2 года назад
YES ! It helped a lot... Thank yu :)
@BhaveshKakwani
@BhaveshKakwani 2 года назад
glad to hear it :)
@artesla5630
@artesla5630 2 года назад
Really helpful tip, thx
@skyagnitti
@skyagnitti 7 месяцев назад
I ran through the install script and rebooted my esp32 and I'm getting this error: ImportError: no module named 'microdot.wsgi' does anyone know how to work this out? I like the idea of webrepl but can also go the OTA route to update files.
@_XY_
@_XY_ 2 года назад
👏👏
@barajend
@barajend Год назад
is there any way i can access the webrepl over the internet anywhere , like access from my cloud server etc
@BhaveshKakwani
@BhaveshKakwani Год назад
It doesn't look like WebREPL supports that natively. I assume you want this feature because you want to update the code on your microcontroller from anywhere? One way to do this is using upagekite, although I've never tried it but it might be of use to you Bala: github.com/pagekite/upagekite
@audiojog
@audiojog Год назад
no WebREPL integration for vscode ?
@BhaveshKakwani
@BhaveshKakwani Год назад
Great question! None that I know of...
@bennguyen1313
@bennguyen1313 2 года назад
I understand ESP32 has 2 cores.. is there a way to select which UART and which CORE you want it flash? Without Thonny is there any other way to see the different scripts you have uploaded to the esp32 file-system? And what happens if you don't have a main py script.. will it just to a REPL prompt? My goal is to have one of the ESP32's core handling the REPL traffic via UART1 (I believe the default is UART0), and have the other core executing my main py script. Is that possible?
@BhaveshKakwani
@BhaveshKakwani 2 года назад
Hi Ben, great questions! I can answer to the best of my understanding: 1. Yes the ESP32 has two cores but from what I know, the MicroPython VM task is "pinned" to one core and runs only on that one. This page (forum.micropython.org/viewtopic.php?t=7776) gives context as to why that is the case. I do not know of a way around this. Also this page explains that multi-threading is quite buggy still in MicroPython (wiki.micropython.org/wiki/Threads) 2. Without Thonny, yes you can see the files on the esp32's file system. It is a simple command-line tool called "mpremote" and is well-documented here (docs.micropython.org/en/latest/reference/mpremote.html). 3. The MicroPython VM first runs boot.py, then it runs main.py. If you don't have a main.py, then yes it will go straight to REPL. 4. Changing the core and/or the UART port on which the REPL runs...I'm afraid I have no idea how to do these. Having said that, it is *rare* to have a real need to do this kind of thing. So could you explain (at a high-level) what project you are trying to do? Perhaps there is a simpler approach to solve your issue instead of this multi-core approach. Usually using asyncio is good enough for most multi-task scenarios
Далее
MicroPython on Docker - Tutorial
8:01
Просмотров 1 тыс.
ESP32 Web Server - Async Micropython Tutorial
34:06
Просмотров 13 тыс.
MicroPython - MQTT tutorial on ESP32
31:44
Просмотров 10 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 405 тыс.