Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ConfigFile FXOS8700CQ M2XStreamClient-JMF MODSERIAL SDFileSystem WNCInterface jsonlite mbed-rtos mbed
Fork of StarterKit_M2X_DevLab by
Revision 1:1c840717deea, committed 2016-09-27
- 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);
