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