TCP client see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

Dependencies:   GSwifi mbed

Fork of GSwifi_tcpserver by gs fan

Files at this revision

API Documentation at this revision

Comitter:
gsfan
Date:
Sat Oct 27 00:43:28 2012 +0000
Parent:
2:e22671f88297
Child:
4:e6192ed22442
Commit message:
1st build

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Oct 27 00:40:35 2012 +0000
+++ b/main.cpp	Sat Oct 27 00:43:28 2012 +0000
@@ -42,7 +42,8 @@
     pc.printf("connection\r\n");
     host.setName(HOST);
     host.setPort(PORT);
-    cid = gs.open(host, GSPROT_TCP, &onGsReceive);
+    cid = gs.open(host, GSPROT_TCP, &onGsReceive); // TCP client
+//    cid = gs.open(host, GSPROT_TCP, &onGsReceive); // UDP client
     if (cid < 0) {
         return -1;
     }