SRK Version of mDot LoRa_Sensormode_SRK
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
BME280HumidityMessage.h
00001 /** 00002 * @file BME280HumidityMessage.h 00003 * 00004 * @author Adrian 00005 * @date Jun 1, 2016 00006 */ 00007 00008 #ifndef BME280HUMIDITYMESSAGE_H_ 00009 #define BME280HUMIDITYMESSAGE_H_ 00010 00011 #include <stdio.h> 00012 #include <string> 00013 #include <vector> 00014 #include "SensorMessage.h " 00015 00016 /** 00017 * @class BME280HumidityMessage 00018 * @brief A Container that can hold acquired humidity values from the BME280. The container will be 00019 * transported via a MessageQueue between different Tasks. 00020 */ 00021 class BME280HumidityMessage: public SensorMessage { 00022 public: 00023 BME280HumidityMessage(); 00024 virtual ~BME280HumidityMessage(); 00025 00026 /** 00027 * Sets the humidity value of the BME280HumidityMessage 00028 * @param humidity to be stored 00029 */ 00030 void setHumidity(float humidity); 00031 00032 /** 00033 * Gets the humidity value from the BME280HumidityMessage 00034 * @return 00035 */ 00036 float getHumidity(); 00037 00038 /** 00039 * Gets a small LoRaMessage Type Formated String from the BMEHumidityMessage. 00040 * This String can later be used for transportation via LoRa 00041 * @return 00042 */ 00043 virtual char* getLoRaMessageString(); 00044 00045 private: 00046 std::string loraMessage; 00047 std::vector<std::string> loraMessageId; 00048 00049 float humidity; 00050 }; 00051 00052 #endif /* BME280HUMIDITYMESSAGE_H_ */
Generated on Wed Jul 13 2022 09:23:47 by 1.7.2