Bluetooth Framework C++ Edition

◆ GetServices()

CwclGattLocalService * GetServices ( const size_t  Index) const

Gets the local GATT service by its index.

Parameters
IndexThe service's index. The parameter must be in range between 0 and ServicesCount - 1. If the parameter is out of range the wclEInvalidArgument exception raises.
Returns
The local GATT service object.

If server has not been initialized the wclEGattServer exception raises.

See also
CwclGattLocalService
Exceptions
wclEInvalidArgument
wclEGattServer