void ICACHE_FLASH_ATTR user_event_reconnect() { #if EVENTS_DEBUG debug("EVENTS: Reconnect station\n"); #endif char status[WEBSERVER_MAX_VALUE]; user_event_raise(NULL, json_status(status, ESP8266, RECONNECT, NULL)); websocket_close_all(RECONNECT, NULL); long_poll_close_all(); }
LOCAL void ICACHE_FLASH_ATTR button_close_connections() { debug("BUTTON: Close connections\n"); websocket_close_all(RECONNECT, NULL); long_poll_close_all(); }