Rock Monitoring  V 1.0
SensorStab_GSM.h
Go to the documentation of this file.
1 #ifndef SENSORSTAB_GSM_H
2 #define SENSORSTAB_GSM_H
3 #include "Connection3G.h"
4 #include "lora_class.h"
5 #include "Sensors.h"
6 #include "../Leds/Leds.h"
7 #include "../Constants/Constants.h"
8 
9 
11 {
12  public:
14  void init(void);
15  uint8_t sendToServer(Sensors::structSensors *dataToSend);
16  uint8_t makeMeasurment(void);
17  void convertTime(uint32_t time); //safes the converted time in the member timeString
18  void deepSleep(void);
19  void wakeUp(void);
20  uint8_t measureBattery(void);
21  void run(void);
22  Sensors::structSensors mySensorStruct; //struct used to save the data which was measured and send
23  Sensors::structSensors mySensorStructArray[2]; //struct-array used to save the data which was send
24 
25  private:
26  //Attributes
28  State runState=measure;//used in run() method
29  uint8_t gsmNodeId;
30  uint8_t measureCnt=0;
31  uint32_t sleepTime=60; //how long the Sensornode will sleep until the next sending procedure
32  char timeString[12]; //Safes the result of the method convertTime
33  //objects
37 
38 
39 };
40 
41 #endif // SENSORSTAB_GSM_H
char timeString[12]
uint8_t makeMeasurment(void)
Class that handles the Leds.
Definition: Leds.h:12
Sensors::structSensors mySensorStructArray[2]
void convertTime(uint32_t time)
void wakeUp(void)
void deepSleep(void)
Connection3G my3G
uint8_t measureCnt
uint8_t sendToServer(Sensors::structSensors *dataToSend)
Class that handles the communication over 3G.
Definition: Connection3G.h:15
uint8_t measureBattery(void)
Sensors::structSensors mySensorStruct
Class that handles sensors.
Definition: Sensors.h:12
uint32_t sleepTime