Add MyMessage:getCommand()
This commit is contained in:
@@ -37,6 +37,10 @@ bool MyMessage::isAck() const {
|
|||||||
return miGetAck();
|
return miGetAck();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t MyMessage::getCommand() const {
|
||||||
|
return miGetCommand();
|
||||||
|
}
|
||||||
|
|
||||||
/* Getters for payload converted to desired form */
|
/* Getters for payload converted to desired form */
|
||||||
void* MyMessage::getCustom() const {
|
void* MyMessage::getCustom() const {
|
||||||
return (void *)data;
|
return (void *)data;
|
||||||
|
|||||||
@@ -254,6 +254,9 @@ public:
|
|||||||
int32_t getLong() const;
|
int32_t getLong() const;
|
||||||
uint32_t getULong() const;
|
uint32_t getULong() const;
|
||||||
|
|
||||||
|
// Getter for command type
|
||||||
|
uint8_t getCommand() const;
|
||||||
|
|
||||||
// Getter for ack-flag. True if this is an ack message.
|
// Getter for ack-flag. True if this is an ack message.
|
||||||
bool isAck() const;
|
bool isAck() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user