def _onDeviceCommand(self, client, userdata, pahoMessage):
try:<EOL><INDENT>command = Command(pahoMessage, self._messageCodecs)<EOL><DEDENT>except InvalidEventException as e:<EOL><INDENT>self.logger.critical(str(e))<EOL><DEDENT>else:<EOL><INDENT>self.logger.debug("<STR_LIT>" % (command.command))<EOL>if self.deviceCommandCallback:<EOL><INDENT>self.deviceCommandCallback(command)<EOL><DEDENT><DEDENT>
Internal callback for gateway command messages, parses source device from topic string and
passes the information on to the registered device command callback