lora sensnode
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
Diff: app/UBloxGPSMessage.h
- Revision:
- 0:f2815503561f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/UBloxGPSMessage.h Wed Jul 06 20:40:36 2016 +0000 @@ -0,0 +1,70 @@ +/** + * @file UBloxGPSMessage.h + * + * @author Adrian + * @date 01.06.2016 + * + */ + +#ifndef UBLOXGPSMESSAGE_H_ +#define UBLOXGPSMESSAGE_H_ + +#include <stdio.h> +#include <string> +#include <vector> +#include "SensorMessage.h" + +/** + * @class UBloxGPSMessage + * @brief A Container that can hold acquired gps values from the uBLOX. The container will be + * transported via a MessageQueue between different Tasks. + */ + +class UBloxGPSMessage: public SensorMessage { +public: + UBloxGPSMessage(); + virtual ~UBloxGPSMessage(); + + + /** + * @brief Sets the longitude value of the uBloxGPSMessage + * @param longitude longitude value to be stored + */ + void setLongitude(float longitude); + + /** + * @brief Sets the latitude value of the uBloxGPSMessage + * @param latitude latitude value to be stored + */ + void setLatitude(float latitude); + + + /** + * @brief Gets the longitude value of the uBloxGPSMessage + * @return + */ + float getLongitude(); + + /** + * @brief Gets the latitude value of the uBloxGPSMessage + * @return + */ + float getLatitude(); + + /** + * Gets a small LoRaMessage Type Formated String from the uBloxGPSMessage. + * This String can later be used for transportation via LoRa + * @return + */ + virtual char* getLoRaMessageString(); + +private: + std::string loraMessage; + std::vector<std::string> loraMessageId; + + float longitude; + float latitude; +}; + + +#endif /* UBLOXGPSMESSAGE_H_ */