Example program for the BSDInterface

Dependencies:   BSDInterface NetworkSocketAPI

Fork of HelloLWIPInterface by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
Christopher Haster
Date:
Thu Feb 25 04:14:07 2016 -0600
Branch:
api-changes
Parent:
36:55c3649e4927
Child:
39:418427215a94
Commit message:
Updated dependencies

Changed in this revision

ESP8266Interface.lib Show annotated file Show diff for this revision Revisions of this file
NetworkSocketAPI.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	Thu Feb 25 21:58:51 2016 +0000
+++ b/ESP8266Interface.lib	Thu Feb 25 04:14:07 2016 -0600
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#7c010b1db697
+https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#70f16502253b
--- a/NetworkSocketAPI.lib	Thu Feb 25 21:58:51 2016 +0000
+++ b/NetworkSocketAPI.lib	Thu Feb 25 04:14:07 2016 -0600
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#13929d610ed8
+http://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#f2a088d58051
--- a/main.cpp	Thu Feb 25 21:58:51 2016 +0000
+++ b/main.cpp	Thu Feb 25 04:14:07 2016 -0600
@@ -21,7 +21,7 @@
 DigitalOut myled(LED_GREEN);
 void flash(){ myled = !myled; }
 
-ESP8266Interface wifi(D1, D0);
+ESP8266Interface wifi(D1, D0, 1);
 TCPSocket socket(&wifi);
 
 int main()
@@ -30,7 +30,7 @@
     t.attach(flash, 0.4f);
     printf("NetworkSocketAPI Example\r\n");
 
-    wifi.connect("ssid", "password");
+    wifi.connect("Sniffer", "Sandcastle");
     
     const char *ip = wifi.getIPAddress();
     const char *mac = wifi.getMACAddress();