Syntax
boolean writeDescriptor(
    const LGATTUUID& serviceUUID, 
    boolean isPrimary, 
    const LGATTUUID& characteristicUUID, 
    const LGATTUUID& descriptorUUID, 
    const LGATTAttributeValue& attrValue
);
ContentsIndex
PreviousUpNext
LGATTClient::writeDescriptor Method
LGATTClient Class | Example
Syntax
boolean writeDescriptor(
    const LGATTUUID& serviceUUID, 
    boolean isPrimary, 
    const LGATTUUID& characteristicUUID, 
    const LGATTUUID& descriptorUUID, 
    const LGATTAttributeValue& attrValue
);
Description

This function writes the descriptor to a service.

Parameters
Parameters 
Description 
const LGATTUUID& serviceUUID 
The UUID of the service provided by a Bluetooth 4.0 device.
 
boolean isPrimary 
Specifies if this service is primary.
 
const LGATTUUID& characteristicUUID 
The UUID of the characteristic.
 
const LGATTUUID& descriptorUUID 
The UUID of the descriptor.
 
const LGATTAttributeValue& attrValue 
The attribute value, which is written to the remote Bluetooth 4.0 device if it's successful. 
Returns

true: Successful. 

false: Failed.

Example
   Please refer to the example from begin().
File

LGATTClient.h

Class