20171006
Dependencies: INA219 ISL29125 TSL2561 libmDot-mbed5 LoRa_Miun_20171002 SmartApp_Miun
Fork of Smart_Miun by
Revision 22:7230c1ce7bc2, committed 2017-04-20
- Comitter:
- biwa1400
- Date:
- Thu Apr 20 07:03:29 2017 +0000
- Parent:
- 21:99ca5fc42f3e
- Child:
- 23:c4dbb237bb76
- Commit message:
- SmartMiunV1
Changed in this revision
--- a/lib/LoRa_Miun.lib Wed Apr 12 05:35:40 2017 +0000 +++ b/lib/LoRa_Miun.lib Thu Apr 20 07:03:29 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/biwa1400/code/LoRa_Miun_lib/#cd7fc646a3aa +https://developer.mbed.org/users/biwa1400/code/LoRa_Miun_lib/#5d835ae2a591
--- a/lib/SmartApp_Miun.lib Wed Apr 12 05:35:40 2017 +0000 +++ b/lib/SmartApp_Miun.lib Thu Apr 20 07:03:29 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/biwa1400/code/SmartApp_Miun/#3cd336aba723 +https://developer.mbed.org/users/biwa1400/code/SmartApp_Miun/#5b29579a065e
--- a/project/inc/example.h Wed Apr 12 05:35:40 2017 +0000 +++ b/project/inc/example.h Thu Apr 20 07:03:29 2017 +0000 @@ -12,6 +12,8 @@ //@override virtual void run(std::string payload); + + virtual void interrupt(); }; @@ -21,7 +23,7 @@ Application2(uint8_t appNumber):AppUnit(appNumber){}; //@override - virtual void interrupt(); + //virtual void interrupt(); };
--- a/project/src/example.cpp Wed Apr 12 05:35:40 2017 +0000 +++ b/project/src/example.cpp Thu Apr 20 07:03:29 2017 +0000 @@ -11,6 +11,7 @@ Application2 app2(2); smartApp.addApp(app1); smartApp.addApp(app2); + smartApp.setSleepTime(30); //smartApp.showAppMap(); smartApp.startRunning(); @@ -24,9 +25,10 @@ send("Test Packet"); } -void Application2::interrupt() +void Application1::interrupt() { - logInfo("app2 interrupt"); + logInfo("app1 interrupt"); + send("Hello World"); } uint8_t SmartApp_Example::measuredBattery()