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.
Dependencies: DnsQuery ESP8266Interface NetworkSocketAPI mbed
Fork of HelloESP8266Interface by
Revision 18:a5830a6d3e11, committed 2015-07-21
- Comitter:
- sarahmarshy
- Date:
- Tue Jul 21 20:20:45 2015 +0000
- Parent:
- 17:72de842c27b4
- Child:
- 19:03f1da306347
- Commit message:
- Moving to ESP8266Interface
Changed in this revision
| ESP8266Interface.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ESP8266Interface.lib Tue Jul 21 19:56:29 2015 +0000 +++ b/ESP8266Interface.lib Tue Jul 21 20:20:45 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/NetworkSocketAPI/code/WiFiRadioInterface/#783c46b13285 +https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#2400f429ec6b
--- a/main.cpp Tue Jul 21 19:56:29 2015 +0000
+++ b/main.cpp Tue Jul 21 20:20:45 2015 +0000
@@ -28,10 +28,12 @@
wifi.init();
wifi.connect("Buffalo-G-1280", "13808136");
- //char* ip;
- //ip = wifi.getIPAddress();
- //if(!(ip==NULL))
- //printf("IP Address is: %s",ip);
+ char* ip;
+ ip = wifi.getIPAddress();
+ if(ip!=NULL)
+ printf("IP Address is: %s",ip);
+ else
+ printf("No IP");
SocketInterface* mySocket = wifi.allocateSocket(SOCK_TCP);
