Example program for the BSDInterface

Dependencies:   BSDInterface NetworkSocketAPI

Fork of HelloLWIPInterface by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
sarahmarshy
Date:
Wed Jul 22 20:55:47 2015 +0000
Parent:
18:a5830a6d3e11
Child:
20:4cb9ef3b0cc9
Child:
21:979b1db5d7da
Commit message:
Updating libraries

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	Tue Jul 21 20:20:45 2015 +0000
+++ b/ESP8266Interface.lib	Wed Jul 22 20:55:47 2015 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#2400f429ec6b
+https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#312453862371
--- a/NetworkSocketAPI.lib	Tue Jul 21 20:20:45 2015 +0000
+++ b/NetworkSocketAPI.lib	Wed Jul 22 20:55:47 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#f84e69b3fdd3
+http://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#e657a90d9511
--- a/main.cpp	Tue Jul 21 20:20:45 2015 +0000
+++ b/main.cpp	Wed Jul 22 20:55:47 2015 +0000
@@ -35,9 +35,10 @@
     else
         printf("No IP");
     
-    SocketInterface* mySocket = wifi.allocateSocket(SOCK_TCP);
+    SocketInterface* mySocket = wifi.allocateSocket(SOCK_UDP);
+        
     
-    mySocket->setAddressPort("192.168.13.3", 7);
+    mySocket->setAddressPort("192.168.13.6", 7);
     
     mySocket->open();
     mySocket->send("Hello",5, 10000);