20171006

Dependencies:   INA219 ISL29125 TSL2561 libmDot-mbed5 LoRa_Miun_20171002 SmartApp_Miun

Fork of Smart_Miun by BIN WANG

Revision:
23:c4dbb237bb76
Parent:
22:7230c1ce7bc2
--- a/project/src/example.cpp	Thu Apr 20 07:03:29 2017 +0000
+++ b/project/src/example.cpp	Mon Oct 02 16:13:51 2017 +0000
@@ -1,38 +1,10 @@
-
+#include "SmartAppSingle.h"
 #include "example.h"
-#include "LoRa.h"
+#include "MIUN.LoRa.h"
 #include "MTSLog.h"
 
-int main()
+void Example::execute()
 {
-
-    SmartApp_Example smartApp;
-    Application1 app1(1);
-    Application2 app2(2);
-    smartApp.addApp(app1);
-    smartApp.addApp(app2);
-    smartApp.setSleepTime(30);
-    //smartApp.showAppMap();
-    smartApp.startRunning();
-
-    return 0;
+    sendReceive("Hello World",1,NULL);
 }
 
-
-void Application1::run(std::string payload)
-{
-    logInfo("In app 1 ", payload.c_str());
-    send("Test Packet");
-}
-
-void Application1::interrupt()
-{
-    logInfo("app1 interrupt");
-    send("Hello World");
-}
-
-uint8_t  SmartApp_Example::measuredBattery()
-{
-    return 90;
-}
-