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 BME280HumidityMessage.h Source File

BME280HumidityMessage.h

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