wclGattServerConnectionAddService Method |
Creates new local GATT service and adds it to the services
list.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax public int AddService(
wclGattUuid Uuid,
out wclGattLocalService Service
)
Public Function AddService (
Uuid As wclGattUuid,
<OutAttribute> ByRef Service As wclGattLocalService
) As Integer
public:
int AddService(
wclGattUuid Uuid,
[OutAttribute] wclGattLocalService^% Service
)
Parameters
- Uuid wclGattUuid
- The service's UUID.
- Service wclGattLocalService
- If the function completed with success this
parameter receives a just created GATT local service object.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
See Also