Merge pull request #249 from mysensors/MyMessage-getCommand

Add MyMessage:getCommand()
This commit is contained in:
Henrik Ekblad
2015-11-12 07:18:01 +01:00
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;