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

This function reads 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.
 
LGATTAttributeValue& attrValue 
The attribute value, which is obtained from the remote Bluetooth 4.0 device if it's successful. 
Returns

true: Successful. 

false: Failed.

Example
   None
File

LGATTClient.h

Class