Bluetooth Framework C++ Edition

◆ AddService()

int AddService ( const wclGattUuid & Uuid,
CwclGattLocalService *& Service )

Creates new local GATT service and adds it to the services list.

Parameters
UuidThe service's UUID.
ServiceIf the function completed with success this parameter receives a just created GATT local service object.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclGattUuid, CwclGattLocalService