earlephilhower on master
POST http client example (#2704… (compare)
#define FPM_SLEEP_MAX_TIME 0xFFFFFFF
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE); // set WiFi mode to null mode
wifi_fpm_set_sleep_type(MODEM_SLEEP_T);
wifi_fpm_open();
wifi_fpm_do_sleep(FPM_SLEEP_MAX_TIME);
......
// wake up to use WiFi again
wifi_fpm_do_wakeup();
wifi_fpm_close();
wifi_set_opmode(STATION_MODE);
wifi_station_connect();
10579 23:22:46.609658000 192.168.1.29 224.0.0.1 IGMPv2 60 Membership Report group 224.0.0.1
Serial.setDebugOutput(true);
you will see the sync info
Connecting to WiFi
...scandone
state: 0 -> 2 (b0)
.state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
pm open phy_2,type:2 0 0
cnt
connected with WLAN_xyz, channel 4
dhcp client start...
.ip:192.168.1.29,mask:255.255.255.0,gw:192.168.1.1
Waiting for time
please start sntp first !
.Fri Nov 27 23:29:28 2015