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.
Fork of MilkcocoaOsSample_Eth by
Revision 5:103da32c92c7, committed 2017-06-01
- Comitter:
- jksoft
- Date:
- Thu Jun 01 00:25:37 2017 +0000
- Parent:
- 4:abbddd0c8984
- Child:
- 6:d2dcba3c77f0
- Commit message:
- ????????????????
Changed in this revision
| Milkcocoa-os.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/Milkcocoa-os.lib Fri May 19 01:34:41 2017 +0000 +++ b/Milkcocoa-os.lib Thu Jun 01 00:25:37 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/jksoft/code/Milkcocoa-os/#dd68fa651637 +https://developer.mbed.org/users/jksoft/code/Milkcocoa-os/#1b5ec3a15d67
--- a/main.cpp Fri May 19 01:34:41 2017 +0000
+++ b/main.cpp Thu Jun 01 00:25:37 2017 +0000
@@ -38,15 +38,19 @@
pc.printf("%d\n\r",milkcocoa->on(MILKCOCOA_DATASTORE, "push", onpush));
+#ifdef __MILKCOCOA_THREAD
milkcocoa->setLoopCycle(5000);
milkcocoa->start();
-
+#endif
while(1) {
DataElement elem = DataElement();
elem.setValue("v", 1);
milkcocoa->push(MILKCOCOA_DATASTORE, elem);
+#ifndef __MILKCOCOA_THREAD
+ milkcocoa->loop();
+#endif
Thread::wait(7000);
}
