20171006
Dependencies: INA219 ISL29125 TSL2561 libmDot-mbed5 LoRa_Miun_20171002 SmartApp_Miun
Fork of Smart_Miun by
project/src/example.cpp
- Committer:
- biwa1400
- Date:
- 2017-04-12
- Revision:
- 21:99ca5fc42f3e
- Child:
- 22:7230c1ce7bc2
File content as of revision 21:99ca5fc42f3e:
#include "example.h" #include "LoRa.h" #include "MTSLog.h" int main() { SmartApp_Example smartApp; Application1 app1(1); Application2 app2(2); smartApp.addApp(app1); smartApp.addApp(app2); //smartApp.showAppMap(); smartApp.startRunning(); return 0; } void Application1::run(std::string payload) { logInfo("In app 1 ", payload.c_str()); send("Test Packet"); } void Application2::interrupt() { logInfo("app2 interrupt"); } uint8_t SmartApp_Example::measuredBattery() { return 90; }