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