Add MyMessage:getCommand()

This commit is contained in:
Henrik Ekblad
2015-11-11 23:54:12 +01:00
parent 84606788cd
commit e1e26d5676
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -37,6 +37,10 @@ bool MyMessage::isAck() const {
return miGetAck();
}
uint8_t MyMessage::getCommand() const {
return miGetCommand();
}
/* Getters for payload converted to desired form */
void* MyMessage::getCustom() const {
return (void *)data;
+3
View File
@@ -254,6 +254,9 @@ public:
int32_t getLong() const;
uint32_t getULong() const;
// Getter for command type
uint8_t getCommand() const;
// Getter for ack-flag. True if this is an ack message.
bool isAck() const;