wifi_get_ip_info(STATION_IF, &ipconfig)之后
想要将ipconfig.ip.addr打印出来,或者转化成字符串,请问如何操作
使用ipaddr_ntoa,一直报错
请问如何printf ip地址
Re: 请问如何printf ip地址
Postby ESP_Alen » Fri May 27, 2016 11:37 am
os_printf(IPSTR, IP2STR(&ipconfig.ip));
or
uint8_t buf[16];
os_sprintf(buf, IPSTR, IP2STR(&ipconfig.ip));
or
uint8_t buf[16];
os_sprintf(buf, IPSTR, IP2STR(&ipconfig.ip));
Who is online
Users browsing this forum: No registered users and 235 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.