-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
Hi I modified the wifi.py to stop after a certain time , specifically the loop function
def loop(self,timeloop=None):
if timeloop:
self.thread = threading.Thread(target=asyncore.loop, kwargs={'timeout': 1})
self.thread.setDaemon(True)
self.thread.start()
time.sleep(timeloop)
self.local_wifi_server.close()
self.thread.join(timeout=1)
return
else:
asyncore.loop()
I hope it can be useful to someone
Metadata
Metadata
Assignees
Labels
No labels