ESP8266 Developer Zone The Official ESP8266 Forum 2018-03-30T14:48:08+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=9375 2018-03-30T14:48:08+08:00 2018-03-30T14:48:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9375&p=19831#p19831 <![CDATA[Re: How to remove wifi callback "ip log"]]> Statistics: Posted by zhanggx9 — Fri Mar 30, 2018 2:48 pm


]]>
2018-03-27T17:23:29+08:00 2018-03-27T17:23:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9375&p=19793#p19793 <![CDATA[Re: How to remove wifi callback "ip log"]]> You can just remove the one you add in your application.

Statistics: Posted by Her Mary — Tue Mar 27, 2018 5:23 pm


]]>
2018-03-13T15:58:36+08:00 2018-03-13T15:58:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9375&p=19623#p19623 <![CDATA[How to remove wifi callback "ip log"]]>
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


]]>