Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ESP8266Interface by
Diff: ESP8266Interface.cpp
- Branch:
- api-changes
- Revision:
- 46:6b1bd1268074
- Parent:
- 45:538e5ce2f0d3
- Child:
- 47:60a4b49e8b83
--- a/ESP8266Interface.cpp Thu Feb 25 03:32:37 2016 -0600 +++ b/ESP8266Interface.cpp Thu Feb 25 03:34:36 2016 -0600 @@ -83,10 +83,8 @@ return NS_ERROR_NO_CONNECTION; } - _ip_address = _esp.getIPAddress(); - _mac_address = _esp.getMACAddress(); - if (!_ip_address || !_mac_address) { - return NS_ERROR_NO_ADDRESS; + if (!_esp.getIPAddress()) { + return NS_ERROR_DHCP_FAILURE; } return 0; @@ -105,12 +103,12 @@ const char *ESP8266Interface::getIPAddress() { - return _ip_address; + return _esp.getIPAddress(); } const char *ESP8266Interface::getMACAddress() { - return _mac_address; + return _esp.getMACAddress(); } SocketInterface *ESP8266Interface::createSocket(socket_protocol_t proto)