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.
Diff: main.cpp
- Revision:
- 3:5cc9de44aea5
- Parent:
- 2:8fb99c9f5075
- Child:
- 6:562eed9eca87
--- 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);