Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@spacemanspiff2007
spacemanspiff2007 / interface_base.py
Last active July 2, 2021 06:11
micropython interface
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