This Socket Example Program Implements a TCP Socket, UDP Socket, and HTTPClient socket then uses each of these to perform basic I/O.

Dependencies:   JSON M2XStreamClient-JMF WNCInterface mbed-rtos mbed

See the README for details on this example program. NOTE: When started, the program can take up to 40 seconds before it will respond. This delay is the time required for the WNC Data Module to connect with the network.

Files at this revision

API Documentation at this revision

Comitter:
JMF
Date:
Tue Sep 27 20:15:30 2016 +0000
Parent:
2:8fb99c9f5075
Child:
4:e9dbd28a4049
Commit message:
Updated stdio/stderr handling. Moved out of WNCInterface class.

Changed in this revision

WNCInterface.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/WNCInterface.lib	Tue Sep 27 20:04:14 2016 +0000
+++ b/WNCInterface.lib	Tue Sep 27 20:15:30 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/Avnet/code/WNCInterface/#e511ea8d39d5
+https://developer.mbed.org/teams/Avnet/code/WNCInterface/#759dceff95b9
--- a/main.cpp	Tue Sep 27 20:04:14 2016 +0000
+++ b/main.cpp	Tue Sep 27 20:15:30 2016 +0000
@@ -46,10 +46,10 @@
     MODSERIAL pc(USBTX,USBRX,256,256);
     
     pc.baud(115200);
-    printf("STARTING WNCInterface & Socket Test" CRLF);
+    pc.printf("STARTING WNCInterface & Socket Test" CRLF);
     
     ret = wnc.init();                     
-    printf("WNC Module %s initialized (%02X)." CRLF, ret?"IS":"IS NOT", ret);
+    pc.printf("WNC Module %s initialized (%02X)." CRLF, ret?"IS":"IS NOT", ret);
     if( !ret ) {
         printf(" - - - - - - - ALL DONE - - - - - - - " CRLF);
         while(1);