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:
- 2:8fb99c9f5075
- Parent:
- 1:7634d07c4310
- Child:
- 3:5cc9de44aea5
--- a/main.cpp Mon Sep 26 18:32:48 2016 +0000 +++ b/main.cpp Tue Sep 27 20:04:14 2016 +0000 @@ -43,6 +43,9 @@ int main() { int ret; WNCInterface wnc; + MODSERIAL pc(USBTX,USBRX,256,256); + + pc.baud(115200); printf("STARTING WNCInterface & Socket Test" CRLF); ret = wnc.init();