API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBTSECURITY_SETSVCSECURITY()

Brew Release
Brew MP 1.0.2
See Also
IBTSecurity_GetSvcSecurity() IBTSecurity_RetrieveSvcConnReqInfo() IBTSecurity_AuthorizeConnection()
Description
This method sets the minimum security level for a service and controls automatic authorization of incoming service level connection requests.
The service of interest can be specified in several ways: by its service class UUID (E.g. AEEBT_SCU_SERIAL_PORT), by the RFCOMM server channel number, or by L2CAP PSM number. If security is to be enforced on all services over a particular protocol, the protocol UUID should be specified.
Params
po
[in]:
The object
pServiceID
[in]:
Services service identifier
dSecLevel
[in]:
Security level
bAuthorize
[in]:
TRUE, if incoming service level connection request to this service should be notified via IBTSecurityHandler interface. FALSE, to accept the service connection request without notifying the client.
Return
AEE_SUCCESS
[]:
operation has been scheduled
AEE_EBADPARM
[]:
input parameters are invalid
AEE_EITEMBUSY
[]:
another operation is in progress
AEE_EUNSUPPORTED
[]:
service ID method not supported
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Interface
Prototype
  •    AEEResult IBTSecurity_SetSvcSecurity (IBTSecurity*          po,
                                             BTServiceIdentifier1* pServiceID,
                                             BTSecurityLevel       dSecLevel,
                                             boolean               bAuthorize);