def on_receive_ap_command(): close_tcp_server() CLI.start_accesspoint_mode() time.sleep(60) sys.exit()
def check_network_status(): print('check_network_status') ip = CLI.get_ip() if ip is None: CLI.start_accesspoint_mode() time.sleep(60)