Hello everyone,
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;
//...
}
}
How to remove wifi callback "ip log"
Re: How to remove wifi callback "ip log"
Postby Her Mary » Tue Mar 27, 2018 5:23 pm
I guess that it is printed by the system itself, and if you also add the log in your application as the code you provided, it will print twice.
You can just remove the one you add in your application.
You can just remove the one you add in your application.
Who is online
Users browsing this forum: No registered users and 314 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.