boolean writeCharacteristic( const LGATTUUID& serviceUUID, boolean isPrimary, const LGATTUUID& characteristicUUID, const LGATTAttributeValue& attrValue );
boolean writeCharacteristic( const LGATTUUID& serviceUUID, boolean isPrimary, const LGATTUUID& characteristicUUID, const LGATTAttributeValue& attrValue );
This function writes the service characteristic provided by a Bluetooth 4.0 device.
|
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 LGATTAttributeValue& attrValue |
The attribute value, which is written to the remote Bluetooth 4.0 device if it's successful. |
true: Successful.
false: Failed.
None
LGATTClient.h