Jan Korycan / Mbed 2 deprecated StarterKit_M2X_UDP

Dependencies:   ConfigFile FXOS8700CQ M2XStreamClient-JMF MODSERIAL SDFileSystem WNCInterface jsonlite mbed-rtos mbed

Fork of StarterKit_M2X_DevLab by Jan Korycan

Files at this revision

API Documentation at this revision

Comitter:
JMF
Date:
Tue Sep 27 20:02:21 2016 +0000
Parent:
0:62feed0f1fd9
Child:
2:eb0768c06c1b
Commit message:
Adding code to initialize stdio/stderr output, moved out of WNCInterface.

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	Wed Sep 21 16:22:43 2016 +0000
+++ b/WNCInterface.lib	Tue Sep 27 20:02:21 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	Wed Sep 21 16:22:43 2016 +0000
+++ b/main.cpp	Tue Sep 27 20:02:21 2016 +0000
@@ -39,6 +39,7 @@
 Client client;
 M2XStreamClient m2xClient(&client, m2xKey);
 TimeService timeService(&m2xClient);
+MODSERIAL pc(USBTX,USBRX,256,256);
 
 void on_data_point_found(const char* at, const char* value, int index, void* context, int type) {
   printf(">>Found a data point, index: %d type: %d" CRLF, index, type);
@@ -72,6 +73,7 @@
   double temp=0.00;  //we will just increment these 0.01 each time through the loop
   double humid=0.00; //we will just increment these 1 each time through the loop wrapping at 100
 
+  pc.baud(115200);
   printf("Start m2x-demo-all by initializng the network" CRLF);
   response = eth.init();                     
   printf("WNC Module %s initialized (%02X)." CRLF, response?"IS":"IS NOT", response);