Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed
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
Generated on Tue Jul 12 2022 21:35:26 by
1.7.2