From 56f2d90751f1c1b2db925da215a14721cf18d483 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 6 Dec 2017 14:49:23 +0100 Subject: esp8266: Disable WiFi by default --- src/arch/esp8266/arch.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/arch/esp8266/arch.cc b/src/arch/esp8266/arch.cc index 3542423..0e11f2d 100644 --- a/src/arch/esp8266/arch.cc +++ b/src/arch/esp8266/arch.cc @@ -35,6 +35,12 @@ void ICACHE_FLASH_ATTR jump_to_main(void) os_timer_setfn(&loop_timer, (os_timer_func_t *)jump_to_loop, (void *)0); os_timer_arm(&loop_timer, 1000, 1); #endif + // Disable Wi-Fi + wifi_station_disconnect(); + wifi_set_opmode_current(NULL_MODE); + wifi_fpm_set_sleep_type(MODEM_SLEEP_T); + wifi_fpm_open(); + wifi_fpm_do_sleep(0xFFFFFFF); main(); } -- cgit v1.2.3