Syntax
boolean getServiceInfo(
    int index, 
    LGATTUUID& serviceUUID, 
    boolean& isPrimary
);
ContentsIndex
PreviousUpNext
LGATTClient::getServiceInfo Method
LGATTClient Class | Example
Syntax
boolean getServiceInfo(
    int index, 
    LGATTUUID& serviceUUID, 
    boolean& isPrimary
);
Description

This function gets the information of a service.

Parameters
Parameters 
Description 
int index 
The index of services. The maximum is the return value of getServiceCount().
 
LGATTUUID& serviceUUID 
The UUID of the service provided by a Bluetooth 4.0 device.
 
boolean& isPrimary 
Indicates if this service is primary. 
Returns

true: Successful. 

false: Failed.

Example
   None.

int getCharacteristicNumber(const LGATTUUID &serviceUUID, boolean isPrimary);

File

LGATTClient.h

Class