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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
src/CloudDataHandler/CloudDataHandler.cpp@284:cc72206ea8e0, 2016-10-28 (annotated)
- Committer:
- jinu
- Date:
- Fri Oct 28 18:44:12 2016 +0000
- Revision:
- 284:cc72206ea8e0
- Parent:
- 149:950c90425f7c
modified for live data testing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 20:653923c2f37a | 1 | #include "CloudDataHandler.h" |
davidjhoward | 27:38205cebc3da | 2 | #include "CloudFileReceiver.h" |
davidjhoward | 116:7337ed514891 | 3 | #include "LogHandler.h" |
davidjhoward | 26:6bd4868171c7 | 4 | #include "MTSLog.h" |
jmarkel44 | 20:653923c2f37a | 5 | #include <stdio.h> |
davidjhoward | 26:6bd4868171c7 | 6 | #include "mDot.h" |
davidjhoward | 26:6bd4868171c7 | 7 | #include <vector> |
jmarkel44 | 20:653923c2f37a | 8 | #include "rtos.h" |
davidjhoward | 26:6bd4868171c7 | 9 | #include "global.h" |
jmarkel44 | 20:653923c2f37a | 10 | |
jmarkel44 | 20:653923c2f37a | 11 | void CloudDataHandler(void const *args) |
jmarkel44 | 20:653923c2f37a | 12 | { |
davidjhoward | 26:6bd4868171c7 | 13 | int32_t ret; |
davidjhoward | 123:ce602c91a9c3 | 14 | bool joined; |
davidjhoward | 116:7337ed514891 | 15 | bool sent; |
davidjhoward | 26:6bd4868171c7 | 16 | |
jmarkel44 | 20:653923c2f37a | 17 | printf("\r%s has started...\n", __func__); |
davidjhoward | 26:6bd4868171c7 | 18 | |
jmarkel44 | 20:653923c2f37a | 19 | while ( true ) { |
jinu | 284:cc72206ea8e0 | 20 | sent = LogHandler( false ); |
davidjhoward | 149:950c90425f7c | 21 | Thread::wait(1000); |
jmarkel44 | 20:653923c2f37a | 22 | } |
jinu | 284:cc72206ea8e0 | 23 | } |