pycom-micropython-sigfox: `utimeq` is not available by default in the standard library
Two other users plus myself are reporting this in detail on the forum.
utimeq is required by uasyncio, a very useful module for creating event loops, available in the «standard» MicroPython library.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (10 by maintainers)
Commits related to this issue
- Merge pull request #112 from pycom/lte_debug LTE: add debug flag — committed to pycom/pycom-micropython-sigfox by peter-pycom 4 years ago
- Merge pull request #112 from pycom/lte_debug LTE: add debug flag — committed to X-Ryl669/pycom-micropython-sigfox by peter-pycom 4 years ago
Hello, Uasyncio support added in development release 1.19.0.b4. utimeq is part of the firmware since the mentioned version, 1.15.0.b1 thus closing this issue.
Well I have to say, robert-hh is the man. I tested his changes and I’m able to get various parts (uasyncio,core, uasyncio.synchro and uasyncio.queues) of uasyncio working on my WiPy 2.0 running 1.11.0b1.
Regarding the part about replacing ipoll with poll. I read in the MP uasyncio source/uselect docs that they were using ipoll for the oneshot behaviour and that this was equivalent to calling poll.modify(obj, 0) on socks/streams/whatever who have received events. I made the following tiny change to the wait function in https://github.com/micropython/micropython-lib/blob/master/uasyncio/uasyncio/__init__.py to try and reproduce the one-shot behaviour with poll. Did I call self.poller.modify(sock, 0) in a sane place? Sorry I don’t have a great test case (in fact I have no sockets or other stream-type-things) for this at the moment in my codebase.