ESP8266 Developer Zone The Official ESP8266 Forum 2019-06-26T11:24:15+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=30084 2019-06-26T11:24:15+08:00 2019-06-26T11:24:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=30084&p=48403#p48403 <![CDATA[Re: RTOS SDK 2.1 : Switch OFF the wifi without enter in sleep mode]]>

Code:

void fpm_wakup_cb_func1(void)

 {

   wifi_fpm_close();
   wifi_set_opmode(STATION_MODE);
   wifi_station_connect();

}
void user_func()

{

wifi_station_disconnect();

wifi_set_opmode(NULL_MODE);
wifi_fpm_set_sleep_type(MODEM_SLEEP_T);
wifi_fpm_open();

// wakeup automatically when timeout.

wifi_fpm_set_wakeup_cb(fpm_wakup_cb_func1); // Set wakeup callback 

wifi_fpm_do_sleep(50*1000); 
 #endif 

}


Statistics: Posted by Her Mary — Wed Jun 26, 2019 11:24 am


]]>
2019-06-12T23:57:30+08:00 2019-06-12T23:57:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=30084&p=42587#p42587 <![CDATA[Re: RTOS SDK 2.1 : Switch OFF the wifi without enter in sleep mode]]> to switch OFF the RF part

Code:

   
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE);
wifi_set_sleep_type(MODEM_SLEEP_T);
wifi_fpm_open();
wifi_fpm_do_sleep(5*60*1000); //sleep for 1min


To switch ON the RF PART

Code:

wifi_set_opmode(STATIONAP_MODE);
wifi_station_connect();       // connect to AP


Please comment this post if you see any limitation or miss understanding from myself

Thierry,

Statistics: Posted by Guest — Wed Jun 12, 2019 11:57 pm


]]>
2019-06-11T17:14:34+08:00 2019-06-11T17:14:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=30084&p=42518#p42518 <![CDATA[RTOS SDK 2.1 : Switch OFF the wifi without enter in sleep mode]]> I would like to switch OFF WiFi but still active the main MCU for survey process on some input and send alert by WiFi, is there any way to switch OFF the WiFi alone without entered in deepsleep mode

Thanks
Thierry,

Statistics: Posted by Guest — Tue Jun 11, 2019 5:14 pm


]]>