Steven Kramer / Mbed 2 deprecated mDot_LoRa_Sensornode_SRK

Dependencies:   libmDot mbed-rtos mbed

Fork of mDot_LoRa_Sensornode by Adrian Mitevski

Revision:
0:f2815503561f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/MAX44009Message.h	Wed Jul 06 20:40:36 2016 +0000
@@ -0,0 +1,55 @@
+/**
+ * @file MAX44009Message.h
+ *
+ * @author Adrian
+ * @date 01.06.2016
+ *
+ */
+
+#ifndef MAX44009MESSAGE_H_
+#define MAX44009MESSAGE_H_
+
+#include <string>
+#include <vector>
+#include <stdio.h>
+#include "SensorMessage.h"
+
+/**
+ * @class MAX44009Message
+ * @brief A Container that can hold acquired lux values from the MAX44009. The container will be
+ * transported via a MessageQueue between different Tasks.
+ */
+class MAX44009Message:public SensorMessage {
+public:
+	MAX44009Message();
+	virtual ~MAX44009Message();
+
+	/**
+	 * Sets the lux value of the MAX44009 Message
+	 * @param lux lux value to be stored
+	 */
+	void setLux(float lux);
+
+	/**
+	 * Gets the lux value from the MAX44009 Message
+	 * @return
+	 */
+	float getLux();
+
+
+	/**
+	 * Gets a small LoRaMessage Type Formated String from the MAX44009Message.
+	 * This String can later be used for transportation via LoRa
+	 * @return
+	 */
+	virtual char* getLoRaMessageString();
+
+private:
+	std::string loraMessage;
+	std::vector<std::string> loraMessageId;
+
+	float lux;
+
+};
+
+#endif /* MAX44009MESSAGE_H_ */