Handle LoRa Basic Function

Dependents:   lora_example_miun

Committer:
biwa1400
Date:
Wed Mar 08 18:54:32 2017 +0000
Revision:
0:f8af47d9f0cd
20170308

Who changed what in which revision?

UserRevisionLine numberNew contents of line
biwa1400 0:f8af47d9f0cd 1 #ifndef PARKING_H_
biwa1400 0:f8af47d9f0cd 2 #define PARKING_H_
biwa1400 0:f8af47d9f0cd 3
biwa1400 0:f8af47d9f0cd 4 #include "mbed.h"
biwa1400 0:f8af47d9f0cd 5 #include "mDot.h"
biwa1400 0:f8af47d9f0cd 6 #include "Lora.h"
biwa1400 0:f8af47d9f0cd 7 #include "ADC.h"
biwa1400 0:f8af47d9f0cd 8
biwa1400 0:f8af47d9f0cd 9 class Parking
biwa1400 0:f8af47d9f0cd 10 {
biwa1400 0:f8af47d9f0cd 11 private:
biwa1400 0:f8af47d9f0cd 12 const static string SATAE_TITLE;
biwa1400 0:f8af47d9f0cd 13 const static string EXIST;
biwa1400 0:f8af47d9f0cd 14 const static string DISAPPEAR;
biwa1400 0:f8af47d9f0cd 15
biwa1400 0:f8af47d9f0cd 16 Lora loraNode1;
biwa1400 0:f8af47d9f0cd 17 ADC_class sensor1;
biwa1400 0:f8af47d9f0cd 18 int sleepTime;
biwa1400 0:f8af47d9f0cd 19
biwa1400 0:f8af47d9f0cd 20 bool init();
biwa1400 0:f8af47d9f0cd 21 bool fill_data();
biwa1400 0:f8af47d9f0cd 22 std::string findKeyWord(std::string in_string, std::string keyWord);
biwa1400 0:f8af47d9f0cd 23 //capture();
biwa1400 0:f8af47d9f0cd 24 public:
biwa1400 0:f8af47d9f0cd 25 Parking(){init(); sleepTime = 30000;}
biwa1400 0:f8af47d9f0cd 26 int getSleepTime() {return sleepTime;}
biwa1400 0:f8af47d9f0cd 27 void setSleepTime(int inSleepTime) {sleepTime = inSleepTime;}
biwa1400 0:f8af47d9f0cd 28 mDot* useDot(){return loraNode1.useDot();}
biwa1400 0:f8af47d9f0cd 29 Lora* useLora() {return &loraNode1;}
biwa1400 0:f8af47d9f0cd 30 bool recevie_set_sleeptime();
biwa1400 0:f8af47d9f0cd 31 bool capture_sent();
biwa1400 0:f8af47d9f0cd 32
biwa1400 0:f8af47d9f0cd 33 };
biwa1400 0:f8af47d9f0cd 34
biwa1400 0:f8af47d9f0cd 35 #endif