After connecting to AP, and obtained the address, there is no information of AP's IP address.
If there is no AT commands to know AP's IP address, please suggest which API in the SDK we can use. In "2c-esp8266_non_os_sdk_api_reference_cn.pdf", there seems no API to provide AP's IP address.
AT version:220.127.116.11(Jul 14 2016 18:54:01)
compile time:Jul 22 2016 12:02:54
Using API : WiFi event "EVENT_STAMODE_GOT_IP" after registered callback by wifi_set_event_handler_cb.
Using AT command : AT+CIPSTA_CUR?
For the call-back function, could you elaborate more in detail. Finally, what's the API can user use to get the AP's IP?
Anyway, "AT+CIFSR " could not return the connected AP's IP. This should be a bug, and needs to be corrected.
Using API, documentation "2c-esp8266_non_os_sdk_api_reference" has sample code of wifi_set_event_handler_cb.
Using AT command, after ESP8266 connected to an AP, input command: AT+CIPSTA_CUR? to get the IP details of ESP8266 station. Do NOT forget the ? character in the command (AT+CIPSTA_CUR?), it is used to query the information.
Who is online
Users browsing this forum: No registered users and 1 guest
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!