boolean writeDescriptor( const LGATTUUID& serviceUUID, boolean isPrimary, const LGATTUUID& characteristicUUID, const LGATTUUID& descriptorUUID, const LGATTAttributeValue& attrValue );
boolean writeDescriptor( const LGATTUUID& serviceUUID, boolean isPrimary, const LGATTUUID& characteristicUUID, const LGATTUUID& descriptorUUID, const LGATTAttributeValue& attrValue );
This function writes the descriptor to a service.
|
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. |
true: Successful.
false: Failed.
Please refer to the example from begin().
LGATTClient.h