(self, handle, value)
Receive a notification from the connected device and propagate the value
        to all registered callbacks.
Receive a notification from the connected device and propagate the value
        to all registered callbacks.
Receive a notification from the connected device and propagate the value to all registered callbacks .
def receive_notification(self, handle, value):
        """
        Receive a notification from the connected device and propagate the value
        to all registered callbacks.
        """

        log.info('Received notification on handle=0x%x, value=0x%s',
                 handle, hexlify(value))
        with self._lock:
            if handle in self._callbacks:
                for callback in self._callbacks[handle]:
                    callback(handle, value)
def receive_notification ( self , handle , value ) : log . info ( 'Received notification on handle=0x%x, value=0x%s' , handle , hexlify ( value ) ) with self . _lock : if handle in self . _callbacks : for callback in self . _callbacks [ handle ] : callback ( handle , value )