TCP client see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Fork of GSwifi_tcpserver by
Diff: main.cpp
- Revision:
- 3:7ec5f2741abf
- Parent:
- 2:e22671f88297
- Child:
- 4:e6192ed22442
--- 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; }