Reputation: 49
I'm trying to let the LED keep blinking while waiting in the "wait_msg()" function. can I achieve this by uasycncio, _thread, or modification on the main loop in the module? And how?
Many thanks.
Upvotes: 0
Views: 103
Reputation: 8265
Try the following:
client.check_msg()
led.toggle()
time.sleep(0.1)
Upvotes: 1