Search found 5 matches

by schwinnez
Tue Oct 22, 2019 8:52 pm
Forum: ESP8266 boards
Topic: UART not working anymore in current version
Replies: 6
Views: 1068

Re: UART not working anymore in current version

Okay, just realized, that since 1.10, one needs to detach the REPL explicitly. uos.dupterm(None, 1) https://github.com/micropython/micropython/commit/afd0701bf7a9dcb50c5ab46b0ae88b303fec6ed3#diff-409f89d5932ece380bae30fbc4cd0c03 Actually, I am wondering, why this change has been made. Previously "pr...
by schwinnez
Tue Oct 22, 2019 10:30 am
Forum: ESP8266 boards
Topic: UART not working anymore in current version
Replies: 6
Views: 1068

Re: UART not working anymore in current version

Any updates on this?
For me, using MicroPython 1.11 reading from UART 0 is also not working (ESP8266). Writing works fine.
I am (also) reading from serial in a coroutine (if this might be a cause of the issue?).
by schwinnez
Mon Apr 23, 2018 8:25 pm
Forum: General Discussion and Questions
Topic: Problems with running umqtt client asynchronously in main.py
Replies: 4
Views: 1581

Re: Problems with running umqtt client asynchronously in main.py

Just changed my code again with some input from your script and now it seems to be working. I still don't know what change made the difference but I'll try to figure it out. I will keep you informed. I am currently using non-blocking check_msg from MQTT client with periodically calling await asyncio...
by schwinnez
Mon Apr 23, 2018 9:07 am
Forum: General Discussion and Questions
Topic: Problems with running umqtt client asynchronously in main.py
Replies: 4
Views: 1581

Re: Problems with running umqtt client asynchronously in main.py

I've already thought about using your alternative MQTT Client. ;) But I am still wondering, why something works when launched from the WebREPL but not when launched from the main.py. I did only experienced this for the MQTT Client. I already tried to change it slightly, but without success :( Any id...
by schwinnez
Sun Apr 22, 2018 12:43 pm
Forum: General Discussion and Questions
Topic: Problems with running umqtt client asynchronously in main.py
Replies: 4
Views: 1581

Problems with running umqtt client asynchronously in main.py

Hi, I am trying to asynchronously initialize a umqtt simple MQTT-Client in the main function and also check for new messages in this asynconous task. What i am basically doing in the task is initializing the client and checking for messages as follows: while True: await asyncio.sleep_ms(100) client....