def handle_reset(environ, start_response): start_response(httplib.OK, [('Content-Type', 'text/plain')]) enable_wifi_p2p_service() restore_config_files() stop_hotspot() return []
def wifi_reset(): wifi.enable_wifi_p2p_service() wifi.restore_config_files() wifi.stop_hotspot()