Example program for the BSDInterface

Dependencies:   BSDInterface NetworkSocketAPI

Fork of HelloLWIPInterface by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Thu Jun 18 15:25:36 2015 +0000
Parent:
10:ca389819e01e
Child:
12:31aad4e3317e
Commit message:
change wifi->connect to wifi->open for sockets

Changed in this revision

NetworkSocketAPI.lib Show annotated file Show diff for this revision Revisions of this file
WiFiRadioInterface.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/NetworkSocketAPI.lib	Wed Jun 17 23:40:46 2015 +0000
+++ b/NetworkSocketAPI.lib	Thu Jun 18 15:25:36 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#4b7f97a5597b
+http://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#26b257519de9
--- a/WiFiRadioInterface.lib	Wed Jun 17 23:40:46 2015 +0000
+++ b/WiFiRadioInterface.lib	Thu Jun 18 15:25:36 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/NetworkSocketAPI/code/wifi_interface/#55e8928e5788
+http://developer.mbed.org/teams/NetworkSocketAPI/code/wifi_interface/#d29439d50306
--- a/main.cpp	Wed Jun 17 23:40:46 2015 +0000
+++ b/main.cpp	Thu Jun 18 15:25:36 2015 +0000
@@ -52,7 +52,7 @@
     
     //Socket socket;
     char buf[1024];
-    wifi.connect(*wifi.endpoint);
+    wifi.open(*wifi.endpoint);
     wifi.recv(buf, 1024);
     wifi.send(buf, sizeof(buf));
     wifi.close(*wifi.endpoint);