Handle LoRa Basic Function

Dependents:   lora_example_miun

Revision:
0:f8af47d9f0cd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Parking.h	Wed Mar 08 18:54:32 2017 +0000
@@ -0,0 +1,35 @@
+#ifndef PARKING_H_
+#define PARKING_H_
+
+#include "mbed.h"
+#include "mDot.h"
+#include "Lora.h"
+#include "ADC.h"
+
+class Parking
+{
+private:   
+    const static string SATAE_TITLE;
+    const static string EXIST;
+    const static string DISAPPEAR;
+    
+    Lora loraNode1;
+    ADC_class sensor1;
+    int sleepTime;
+    
+    bool init();
+    bool fill_data();
+    std::string findKeyWord(std::string in_string, std::string keyWord);
+    //capture();
+public:
+    Parking(){init(); sleepTime = 30000;}
+    int getSleepTime() {return sleepTime;}
+    void setSleepTime(int inSleepTime) {sleepTime = inSleepTime;}
+    mDot* useDot(){return loraNode1.useDot();}
+    Lora* useLora() {return &loraNode1;}
+    bool recevie_set_sleeptime();
+    bool capture_sent();
+    
+};
+
+#endif
\ No newline at end of file