ImportError: no module named 'threading'
-
I'm trying to use threads on a Lopy and need more control over the threads than the _threads module can provide. I see from this: https://pycom.io/qa-micropython-multi-threading-garbage-collector/ (third Question) that 'from threading import Thread' now should be a valid import. However, this is not the case.
Does anyone know how to fix this or how to work with threads in a good way on the Lopy?
I'm trying to make a gateway with one Lopy that listens to incoming packets from other Lopy's over raw Lora. Additionally, the gateway is supposed to both be able to send what it gets from the other Lopy's to a web server and send packets (signalling information) to the Lopy's. This info could be how often the Lopy's should send updates to the gateway etc.
Any help would be awesome! :)
-
-
try
_thread
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