Example program for the BSDInterface
Dependencies: BSDInterface NetworkSocketAPI
Fork of HelloLWIPInterface 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);