Solution based on select():
https://github.com/grzegorzwozny/Microp ... er.py#L124
Search found 24 matches
- Sat Nov 12, 2022 6:45 pm
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 70713
- Thu Dec 10, 2020 6:53 pm
- Forum: Development of MicroPython
- Topic: Issue when compile firmware
- Replies: 3
- Views: 2348
Re: Issue when compile firmware
OK, Just editing file stm32f4xx_hal_conf.h resolved the problem. Thank you.
- Wed Dec 09, 2020 10:58 pm
- Forum: Development of MicroPython
- Topic: Issue when compile firmware
- Replies: 3
- Views: 2348
Re: Issue when compile firmware
Thank you for your answer. Is really helpful. I will try this and give feedback.
- Wed Dec 09, 2020 10:28 am
- Forum: Development of MicroPython
- Topic: Issue when compile firmware
- Replies: 3
- Views: 2348
Issue when compile firmware
I have a problem when trying compile micropython firmware for F411: https://github.com/WeActTC/WeAct_F411CE-MicroPython Everything is OK when use stable version 1.13 of Micropython but I need newest daily version for my experiment. git clone https://github.com/micropython/micropython.git cd micropyt...
- Sat Dec 05, 2020 3:23 pm
- Forum: ESP8266 boards
- Topic: Micropython question using uasyncio with ESP8266 webserver
- Replies: 4
- Views: 5118
Re: Micropython question using uasyncio with ESP8266 webserver
I think so. This is only draft but work for me. Currently I have three task one of them is web server.
- Mon Nov 23, 2020 10:29 pm
- Forum: General Discussion and Questions
- Topic: rshell error in transfer to remote
- Replies: 0
- Views: 1128
rshell error in transfer to remote
Hello,
I have a problem when trying copy *.mpy files to ESP8266 memory:
I use version 0.0.28 of rshell.
I have a problem when trying copy *.mpy files to ESP8266 memory:
Other files like *.py, *.html, *.json is copied perfect.timed out or error in transfer to remote: b'\x04'
I use version 0.0.28 of rshell.
- Wed Nov 04, 2020 7:10 pm
- Forum: ESP8266 boards
- Topic: Micropython question using uasyncio with ESP8266 webserver
- Replies: 4
- Views: 5118
Re: Micropython question using uasyncio with ESP8266 webserver
Maby try https://github.com/swvincent/mp-web-non-blocking. This solution help me resolve my porblem with blocking socket in system.
- Fri Oct 30, 2020 6:24 pm
- Forum: General Discussion and Questions
- Topic: Switching between tasks
- Replies: 6
- Views: 3073
Re: Switching between tasks
Thank you for you solution. Simple state machine resolve problem.
Three task:
- one for update display
- one for get new value
- one for switching tasks
Three task:
- one for update display
- one for get new value
- one for switching tasks
- Wed Oct 28, 2020 11:59 am
- Forum: General Discussion and Questions
- Topic: Switching between tasks
- Replies: 6
- Views: 3073
Re: Switching between tasks
do you want task 1 for some time. THEN task 2 for some time. THEN task 3? in which case they don't need to be separate tasks Yes. I want something like this: while True: display.text("Task #1", 5, 5) display.show() utime.sleep_ms(5000) display.fill(0) display.text("Task #2", 5, 5) display.show() ut...
- Wed Oct 28, 2020 8:26 am
- Forum: General Discussion and Questions
- Topic: Switching between tasks
- Replies: 6
- Views: 3073
Re: Switching between tasks
OK, I use only: but the Display show only Task #3 (5 sec) and Task #2 (1 sec).
I want show on display Task #1 (during 5 sec.), Task #2 (during 5 sec.) and Task #3 (during 2 sec.)
Code: Select all
await asyncio.sleep_ms( )
I want show on display Task #1 (during 5 sec.), Task #2 (during 5 sec.) and Task #3 (during 2 sec.)