import machine import io_state import access_point from webserver import accept_connection try: while True: accept_connection() io_state.state.update() except KeyboardInterrupt: machine.reset()