コード例 #1
0
ファイル: user_events.c プロジェクト: habashynn/ESP8266
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();
}
コード例 #2
0
ファイル: user_button.c プロジェクト: modSwap/ESP8266
LOCAL void ICACHE_FLASH_ATTR button_close_connections() {
	debug("BUTTON: Close connections\n");
	
	websocket_close_all(RECONNECT, NULL);
	long_poll_close_all();
}