#include <SensorStab_GSM.h>
Definition at line 10 of file SensorStab_GSM.h.
| Enumerator |
|---|
| wakingUP |
|
| measure |
|
| sendServer |
|
| sleep |
|
Definition at line 27 of file SensorStab_GSM.h.
| SensorStab_GSM::SensorStab_GSM |
( |
| ) |
|
| void SensorStab_GSM::convertTime |
( |
uint32_t |
time | ) |
|
This method converts a time into a uint8_t array
- Parameters
-
Definition at line 66 of file SensorStab_GSM.cpp.
| void SensorStab_GSM::deepSleep |
( |
void |
| ) |
|
Turns off all the sensors and modules used in order to safe energy
- Parameters
-
| time | is the number of seconds the sensornode should rest in deepSleep |
Definition at line 46 of file SensorStab_GSM.cpp.
| void SensorStab_GSM::init |
( |
void |
| ) |
|
This method initializes all the components of the sensornode The Sensornode ID is read from the EEPROM
Definition at line 11 of file SensorStab_GSM.cpp.
| uint8_t SensorStab_GSM::makeMeasurment |
( |
void |
| ) |
|
Gets the values from all accelerometer and saves them in the struct
- Returns
- 0 measurement successful
-
1 error with accelerometer
-
2 error with tempSensors
Definition at line 33 of file SensorStab_GSM.cpp.
| uint8_t SensorStab_GSM::measureBattery |
( |
void |
| ) |
|
This method shuts down the battery charger and measures the battery level
- Returns
- returns the battery level
Definition at line 91 of file SensorStab_GSM.cpp.
| void SensorStab_GSM::run |
( |
void |
| ) |
|
Uploads all the received data to a web-server
- Returns
- 0 uploading was successful
-
1 uploading was unsuccessful
Definition at line 26 of file SensorStab_GSM.cpp.
| void SensorStab_GSM::wakeUp |
( |
void |
| ) |
|
Turns ON all the modules and reconfigures them if necessary
- Returns
- 0 all modules have woken up successfully
-
1 not all modules have woken up successfully
Definition at line 59 of file SensorStab_GSM.cpp.
| uint8_t SensorStab_GSM::gsmNodeId |
|
private |
| uint8_t SensorStab_GSM::measureCnt =0 |
|
private |
| Leds SensorStab_GSM::myLeds |
|
private |
| uint32_t SensorStab_GSM::sleepTime =60 |
|
private |
| char SensorStab_GSM::timeString[12] |
|
private |
The documentation for this class was generated from the following files: