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

Developer

API Reference

IBTSECURITY_GETSVCSECURITY()

Brew Release
Brew MP 1.0.2
See Also
IBTSecurity_SetSvcSecurity()
Description
This method retrieves the current security level of the given service.
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
dSecLevel
[in]:
service identidier
pSecLevel
[out]:
security level
pbAuthorize
[out]:
TRUE if authorization required else FALSE
Return
AEE_SUCCESS
[]:
Service security successfully returned.
AEE_EBADPARM
[]:
Input parameters are invalid
AEE_EUNSUPPORTED
[]:
service ID method not supported
AEE_ENOSUCH
[]:
No such service registered with SDP.
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Interface
Prototype
  •    AEEResult IBTSecurity_GetSvcSecurity (IBTSecurity*                po,
                                             const BTServiceIdentifier1* pSvcID
                                             BTSecurityLevel*            pSecLevel
                                             boolean*                    pbAuthorize);