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

This function writes the service characteristic provided by a Bluetooth 4.0 device.

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 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
   None
File

LGATTClient.h

Class