This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from uasyncio import create_task, sleep_ms | |
class InterfaceBase: | |
def __init__(self, interface, auto_reconnect: bool = False): | |
self._if = interface | |
self.first_connect = True | |
self.is_connected = False | |
self.is_connecting = False | |
self.has_connected = False |