Where is asyncio?
-
I tried importing both uasyncio and usyncio. Both failed (no module). Where do I find the async modules?
Thanks in advance! -
What firmware version are you using?
-
V1.9.8
Sorry for the delay in responding . Running on Core -
asyncro is hiding in the firmware and needs to be manually coded to access.
-
@ajb2k3 thank you. how does one access descriptions of the contents of the firmware that are accessible through micropython? I have tried importing (i.e. import uasyncio fails)
-
I've been trying to record them but its slow going without proper documentation. if you want to look into them yourself you need to learn how to use REPL to access the help/DIR function.
-
@ajb2k3 Thanks for your assistance. I do know how to use the dir and help functions, but I have looked in m5stack and machine and cannot locate them (even drilling down modules are in m5stack and machine.)
-
So I tried help("modules") to get the list of all modules. Turns out there is a reference to "_uasyncio" but the object looks like it is only a shell of a module. It has references to a Task class and TaskQueue class but no functions. An attempt to use _uasyncio confirms this. Sigh.
-
@robjasey said in Where is asyncio?:
So I tried help("modules") to get the list of all modules. Turns out there is a reference to "_uasyncio" but the object looks like it is only a shell of a module. It has references to a Task class and TaskQueue class but no functions. An attempt to use _uasyncio confirms this. Sigh.
Well that's a pain.
Sorry I can't help more.