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.
Try the following:
client.check_msg()
led.toggle()
time.sleep(0.1)