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

Developer

API Reference

IBTDUNGW_ENABLE()

Brew Release
Brew MP 1.0.2
See Also
IBTDuNGW_Disable
Description
This API enables the Dialup Networking Gateway service. The service can be enabled only if the data port is mapped to Bluetooth Network Access (NA). When the data port is mapped to Bluetooth NA, the state of the gateway would change to AEEBTDUNGW_STATE_PORT_OPENED.
Params
_pif
[in]:
The object
dSecurity
[in]:
Security level to be enforced. Per Bluetooth DuN specification, data transferred over the DuN connection must be encrypted.
pszServerName
[in]:
Name of the service to be registered in SDP record.
Return
AEE_SUCCESS
[]:
The command was issued successfully. If the service is successfully enabled, the state of the Gateway would change to AEEBTDUNGW_STATE_ENABLED. A possible intermediate state is AEEBTDUNGW_STATE_ENABLING.
AEE_EALREADY
[]:
The DuNGW is already enabled.
AEE_EITEMBUSY
[]:
Another operation is in progress.
AEE_ENOTALLOWED
[]:
Data Port not mapped to Bluetooth. Another appropriate error code if operation was not successful.
Interface
Prototype
  •    AEEResult IBTDuNGW_Enable(IBTDuNGW*       _pif,
                                 BTSecurityLevel dSecurity,
                                 const char*     pszServerName)