Bluetooth Framework
ContentsIndexHome
PreviousUpNext
CwclGattServerConnection::AddService Method

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

Syntax
C++
int AddService(wclGattUuid Uuid, CwclGattLocalService*& Service);
Parameters 
Description 
wclGattUuid Uuid 
The service's UUID.  
CwclGattLocalService*& Service 
If the function completed with success this parameter receives a just created GATT local service object.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Copyright (c) 2006-2020. All rights reserved.