I found a strange "ip log" in wifi callback function with ESP8266_RTOS_SDK V1.5.0.
I regist wifi callback function in user_set_station_config(), and found a strange "ip log"
twice when power up, one of them is printed by cb funciotn list as follows, but where does
the other one come from?
I tried to comment the print log in cb function, and the "ip log" is still printed once.
Even more, the "ip log" is printed sometimes when the system works.
If the cb function not be called, the additional "ip log" dispears.
I want to know, where the additional "ip log" come from, and how to kill it.
Would you pls offer some help.
Thanks!
"ip log" printed as follows:
ip:192.168.43.187,mask:255.255.255.0,gw:192.168.43.1
void user_set_station_config(void)
{
//...
wifi_set_event_handler_cb(wifi_handle_event_cb)
//...
}
void wifi_handle_event_cb(System_Event_t *evt)
{
printf("event 0x%x\n", evt->event_id);
switch (evt->event_id)
{
//...
case EVENT_STAMODE_GOT_IP:
printf("zgxip:" IPSTR ",mask:" IPSTR ",gw:" IPSTR, IP2STR(&evt->event_info.got_ip.ip),
IP2STR(&evt->event_info.got_ip.mask), IP2STR(&evt->event_info.got_ip.gw));
printf("\r\n");
user_tcp_socket();
break;
//...
}
}Statistics: Posted by zhanggx9 — Tue Mar 13, 2018 3:58 pm
]]>