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 CommandMessage.cpp Source File

CommandMessage.cpp

00001 /*
00002  * CommandMessage.cpp
00003  *
00004  *  Created on: 08.06.2016
00005  *      Author: Adrian
00006  */
00007 
00008 #include "CommandMessage.h "
00009 
00010 CommandMessage::CommandMessage() {
00011     // TODO Auto-generated constructor stub
00012 
00013 }
00014 
00015 CommandMessage::~CommandMessage() {
00016     // TODO Auto-generated destructor stub
00017 }
00018 
00019 std::string CommandMessage::getCommandString(){
00020     return *command;
00021 }
00022 
00023 void CommandMessage::setCommandString(std::vector<uint8_t> commandString){
00024     this->command = new std::string(commandString.begin(),commandString.end());
00025 }
00026 
00027 uint8_t CommandMessage::getCommandHex(){
00028     return commandHex;
00029 }
00030 
00031 void CommandMessage::setCommandHex(uint8_t hexValue){
00032     this->commandHex = hexValue;
00033 }
00034 
00035 
00036