def write_handle(self, handle: int, value: bytes):
        """Write a handle to the device."""
        if not self.is_connected():
            raise BluetoothBackendException('Not connected to device!')
        self._device.char_write_handle(handle, value, True)
        return True
def write_handle ( self , handle : int , value : bytes ) : if not self . is_connected ( ) : raise BluetoothBackendException ( 'Not connected to device!' ) self . _device . char_write_handle ( handle , value , True ) return True
Write a handle to the device.