boolean getServiceInfo( int index, LGATTUUID& serviceUUID, boolean& isPrimary );
boolean getServiceInfo( int index, LGATTUUID& serviceUUID, boolean& isPrimary );
This function gets the information of a service.
|
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. |
true: Successful.
false: Failed.
None.
int getCharacteristicNumber(const LGATTUUID &serviceUUID, boolean isPrimary);
LGATTClient.h