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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login