Example program for the BSDInterface
Dependencies: BSDInterface NetworkSocketAPI
Fork of HelloLWIPInterface by
Revision 32:28a909a3748e, committed 2016-02-23
- Comitter:
- Christopher Haster
- Date:
- Tue Feb 23 01:35:24 2016 -0600
- Branch:
- api-changes
- Parent:
- 31:3269075873dc
- Child:
- 33:b80621db4a68
- Commit message:
- Updated example to use the changes to the NetworkInterfaceAPI
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 Feb 23 00:01:04 2016 -0600 +++ b/ESP8266Interface.lib Tue Feb 23 01:35:24 2016 -0600 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#03a9eb614414 +https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#77ad7da7474b
--- a/main.cpp Tue Feb 23 00:01:04 2016 -0600 +++ b/main.cpp Tue Feb 23 01:35:24 2016 -0600 @@ -18,7 +18,7 @@ #include "ESP8266Interface.h" #include "TCPSocket.h" -DigitalOut myled(LED1); +DigitalOut myled(LED_GREEN); void flash(){ myled = !myled; } ESP8266Interface wifi(D1, D0); @@ -30,7 +30,7 @@ t.attach(flash, 0.4f); printf("NetworkSocketAPI Example\r\n"); - wifi.connect("WifiDemo", ""); + wifi.connect("Sniffer", "Sandcastle"); const char *ip = wifi.getIPAddress(); const char *mac = wifi.getMACAddress();