TCP client see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Fork of GSwifi_tcpserver by
Revision 3:7ec5f2741abf, committed 2012-10-27
- 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; }