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
-
@thomand1000
did you looked into docs?
https://docs.pycom.io/chapter/tutorials/all/threading.html
https://docs.pycom.io/chapter/firmwareapi/micropython/_thread.html