/// Writes the value of a characteristic descriptor.
///
/// When you call this method to write the value of a characteristic, the peripheral triggers
/// [`WriteDescriptorResult`](../enum.CentralEvent.html#variant.WriteDescriptorResult) event.
Writes the value of a characteristic descriptor.
When you call this method to write the value of a characteristic, the peripheral triggers
[`WriteDescriptorResult`](../enum.CentralEvent.html#variant.WriteDescriptorResult) event.
Writes the value of a characteristic descriptor . When you call this method to write the value of a characteristic the peripheral triggers [ ` WriteDescriptorResult ` ] ( .. / enum . CentralEvent . html#variant . WriteDescriptorResult ) event .
pub fn write_descriptor(&self, descriptor: &Descriptor, value: &[u8]) {
        objc::rc::autoreleasepool(|| {
            command::WriteDescriptor {
                peripheral: self.peripheral.clone(),
                descriptor: descriptor.descriptor.clone(),
                value: NSData::from_bytes(value).retain(),
            }.dispatch();
        })
    }
pub fn write_descriptor ( & self , descriptor : & Descriptor , value : & [ u8 ] ) { objc :: rc :: autoreleasepool ( | | { command :: WriteDescriptor { peripheral : self . peripheral . clone ( ) , descriptor : descriptor . descriptor . clone ( ) , value : NSData :: from_bytes ( value ) . retain ( ) , } . dispatch ( ) ; } ) }
Writes the value of a characteristic descriptor.
Writes the value of a characteristic descriptor .
&self
descriptor
&Descriptor
value
&[u8]