lora sensnode
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
app/BME280HumidityMessage.h
- Committer:
- mitea1
- Date:
- 2016-07-06
- Revision:
- 0:f2815503561f
File content as of revision 0:f2815503561f:
/** * @file BME280HumidityMessage.h * * @author Adrian * @date Jun 1, 2016 */ #ifndef BME280HUMIDITYMESSAGE_H_ #define BME280HUMIDITYMESSAGE_H_ #include <stdio.h> #include <string> #include <vector> #include "SensorMessage.h" /** * @class BME280HumidityMessage * @brief A Container that can hold acquired humidity values from the BME280. The container will be * transported via a MessageQueue between different Tasks. */ class BME280HumidityMessage: public SensorMessage { public: BME280HumidityMessage(); virtual ~BME280HumidityMessage(); /** * Sets the humidity value of the BME280HumidityMessage * @param humidity to be stored */ void setHumidity(float humidity); /** * Gets the humidity value from the BME280HumidityMessage * @return */ float getHumidity(); /** * Gets a small LoRaMessage Type Formated String from the BMEHumidityMessage. * This String can later be used for transportation via LoRa * @return */ virtual char* getLoRaMessageString(); private: std::string loraMessage; std::vector<std::string> loraMessageId; float humidity; }; #endif /* BME280HUMIDITYMESSAGE_H_ */