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.
Revision 2:8fb99c9f5075, committed 2016-09-27
- Comitter:
- JMF
- Date:
- Tue Sep 27 20:04:14 2016 +0000
- Parent:
- 1:7634d07c4310
- Child:
- 3:5cc9de44aea5
- Commit message:
- updating how stdio/stderr is initialized, moved out of WNCInterface.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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();
Avnet ATT WNC 14A2A Cellular IoT Kit