Search found 47 matches
- Thu Dec 19, 2019 7:06 pm
- Forum: General Discussion and Questions
- Topic: WebRepl input blocked by loop with utime.sleep()?
- Replies: 7
- Views: 5010
Re: WebRepl input blocked by loop with utime.sleep()?
Hi! If the "loop is reading an analog value and conditionally posting to MQTT" runs for example every 5 or 10 seconds you can do this "worker loop" with callback and a timer interrupt, something like: from machine import Timer tim = Timer(-1) ### # Your adc, MQTT Client definitions here ### my_value...
- Thu Dec 19, 2019 3:59 pm
- Forum: General Discussion and Questions
- Topic: Switching UART back and forth
- Replies: 1
- Views: 1448
Re: Switching UART back and forth
I think you need to store the uos.dupterm(None, 1) like uart_repl = uos.dupterm(None, 1) As the docs says uos.dupterm The function returns the previous stream-like object in the given slot. So maybe this works uart_repl = uos.dupterm(None, 1) uart_RS232 = UART(0 ,19200) uart_RS232.init(baudrate=1920...
- Sat Dec 07, 2019 7:08 pm
- Forum: Programs, Libraries and Tools
- Topic: Announcing MPyControl - control MicroPhython with your own code
- Replies: 12
- Views: 7877
Re: Announcing MPyControl - control MicroPhython with your own code
docu !!! good that it is now in place ! haven't seen that before ... probably i skiped it because of the name (i use esp boards... not pyboard...) ok, then i sending my tool for retiring yesterday evening i spent some efforts on webrepl and a small websockets prototype. will kick that too... (will ...
- Thu Dec 05, 2019 10:36 pm
- Forum: General Discussion and Questions
- Topic: OTA Firmware Updates ?!?
- Replies: 12
- Views: 9347
Re: OTA Firmware Updates ?!?
To make it really enduser friendly the "OTA updater" should have a GUI I guess... :roll: A simple TK GUI is quickly made. But then we come to the bigger problem: How to offer an end-user GUI program written in Python? Actually, it's just: git clone and pipenv run gui Well, let's see ;) As Jan said ...
- Thu Dec 05, 2019 4:42 pm
- Forum: General Discussion and Questions
- Topic: OTA Firmware Updates ?!?
- Replies: 12
- Views: 9347
Re: OTA Firmware Updates ?!?
Hi and yes
To make it really enduser friendly the "OTA updater" should have a GUI I guess...
I think starting the OTA from the command line is not "really enduser friendly" as you were asking for.This is also not really enduser friendly. But what the hell
To make it really enduser friendly the "OTA updater" should have a GUI I guess...
- Thu Dec 05, 2019 2:49 pm
- Forum: Programs, Libraries and Tools
- Topic: Announcing MPyControl - control MicroPhython with your own code
- Replies: 12
- Views: 7877
Re: Announcing MPyControl - control MicroPhython with your own code
Hi, I'm glad someone else is working on this :) see https://forum.micropython.org/viewtopic.php?f=15&t=7120#p40515 and this https://forum.micropython.org/viewtopic.php?f=15&t=6808 I like the fact that the serial interface requires just Pyserial (I use Picocom also, but sadly the latest version is no...
- Tue Nov 26, 2019 6:14 pm
- Forum: General Discussion and Questions
- Topic: OTA Firmware Updates ?!?
- Replies: 12
- Views: 9347
Re: OTA Firmware Updates ?!?
They used https://github.com/pfalcon/yaota8266 but this project seems to be unmaintained: last commit is 3 years old :( Yes I know, but maybe it could be a starting point :roll: WebREPL file transfer has known issues on ESP8266: https://github.com/micropython/webrepl# ... e-transfer So far I've bee...
- Tue Nov 26, 2019 5:33 pm
- Forum: General Discussion and Questions
- Topic: ESP32 Network Behavior
- Replies: 24
- Views: 12105
Re: ESP32 Network Behavior
Hi, I've been doing some speed test lately to see the what is the maximum it can achieve. (Using TCP sockets and "plain" MicroPython at least) These are the results: Setup: HOST and DEVICE (esp32) connected to local wifi. RSSI: - HOST : -77 - DEVICE : -72 PING: round-trip min/avg/max/stddev = 35.512...
- Tue Nov 26, 2019 3:44 pm
- Forum: General Discussion and Questions
- Topic: OTA Firmware Updates ?!?
- Replies: 12
- Views: 9347
Re: OTA Firmware Updates ?!?
Hi jedie, To update script files there are some alternatives (as far as I know): - FTP Server (from @Roberthh): https://github.com/robert-hh/FTP-Server-for-ESP8266-ESP32-and-PYBD - uPyLoader (from @Beta_Ravener): https://github.com/BetaRavener/uPyLoader/ - webrepl_cli.py (from micropython/webrepl re...
- Mon Oct 28, 2019 5:00 pm
- Forum: Programs, Libraries and Tools
- Topic: uPydevice - Python library to interface with Micropython devices (WebREPL or Serial connection)
- Replies: 1
- Views: 2090
Re: uPydevice - Python library to interface with Micropython devices (WebREPL or Serial connection)
Hi, the documentation is now in the GitHub repo DOCS Also I've introduced some decorators that allow to do something like this: # In MicroPython do: from pyb import LED # In Python3 do: from upydevice import PYBOARD, upy_cmd_c pyboard = PYBOARD('/dev/tty.usbmodem3370377430372') class LED: def __init...