src/wiotp/sdk/gateway/client.py
def _onDeviceCommand(self, client, userdata, pahoMessage):
        """
        Internal callback for gateway command messages, parses source device from topic string and
        passes the information on to the registered device command callback
        """
        try:
            command = Command(pahoMessage, self._messageCodecs)
        except InvalidEventException as e:
            self.logger.critical(str(e))
        else:
            self.logger.debug("Received gateway command '%s'" % (command.command))
            if self.deviceCommandCallback:
                self.deviceCommandCallback(command)
def _onDeviceCommand(self, client, userdata, pahoMessage):
        try:
            command = Command(pahoMessage, self._messageCodecs)
        except InvalidEventException as e:
            self.logger.critical(str(e))
        else:
            self.logger.debug("Received gateway command '%s'" % (command.command))
            if self.deviceCommandCallback:
                self.deviceCommandCallback(command)
def _onDeviceCommand ( self , client , userdata , pahoMessage ) : try : command = Command ( pahoMessage , self . _messageCodecs ) except InvalidEventException as e : self . logger . critical ( str ( e ) ) else : self . logger . debug ( "Received gateway command '%s'" % ( command . command ) ) if self . deviceCommandCallback : self . deviceCommandCallback ( command )
Internal callback for gateway command messages, parses source device from topic string and
        passes the information on to the registered device command callback
Internal callback for gateway command messages parses source device from topic string and passes the information on to the registered device command callback