A multifunctional and modular Firmware for Multitech's mDot based on ARM mBed provides a widerange of functionality for several Sensors such as MAX44009, BME280, MPU9250, SI1143 and uBlox. It allows you to quickly build a Sensornode that measures specific data with its sensors and sends it via LoRaWAN.

Dependencies:   mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BME280TemperatureMessage.h Source File

BME280TemperatureMessage.h

Go to the documentation of this file.
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_ */