(self, peripheral, descriptor, error)
Called when descriptor value was read or updated.
Called when descriptor value was read or updated.
Called when descriptor value was read or updated .
def peripheral_didUpdateValueForDescriptor_error_(self, peripheral, descriptor, error):
        """Called when descriptor value was read or updated."""
        logger.debug('peripheral_didUpdateValueForDescriptor_error called')
        # Stop if there was some kind of error.
        if error is not None:
            return
        # Notify the device about the updated descriptor value.
        device = device_list().get(peripheral)
        if device is not None:
            device._descriptor_changed(descriptor)
def peripheral_didUpdateValueForDescriptor_error_ ( self , peripheral , descriptor , error ) : logger . debug ( 'peripheral_didUpdateValueForDescriptor_error called' ) # Stop if there was some kind of error. if error is not None : return # Notify the device about the updated descriptor value. device = device_list ( ) . get ( peripheral ) if device is not None : device . _descriptor_changed ( descriptor )