Allows a local service to register itself to a local Bluetooth service database. This enables remote Bluetooth devices to discover the service doing an SDP Agent search.
The Service Discovery Database API is one of two APIs that allow you to use the Bluetooth Service Discovery Protocol. The other, the Bluetooth Service Discovery Agent , enables you to discover the Bluetooth services, and the attributes of those services, that are available on a remote device.
Service Discovery Database
A service is described through a number of attributes, each of which can hold a specific type of value, such as an integer, boolean, string, etc.
The base class through which all attributes are manipulated is CSdpAttrValue .
A family of classes derived from CSdpAttrValue provide classes through which these types can be manipulated: CSdpAttrValueBoolean , CSdpAttrValueDEA , CSdpAttrValueDES , CSdpAttrValueInt , CSdpAttrValueNil , CSdpAttrValueString , CSdpAttrValueUint , CSdpAttrValueURL , and CSdpAttrValueUUID .
Two classes, CSdpAttrValueDEA and CSdpAttrValueDES , enable lists of attributes to be constructed. Both implement the MSdpElementBuilder interface that provides functions to accumlatively add attributes to a list.
Service record handle
The attributes for a service are stored in a service record. A record is referred to through an ID, known as a service record handle, stored in a TSdpServRecordHandle .
Start with the Service Records and Attributes guide.
The following tutorials explain how to get started using the service discovery database.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.