BLE_L2CAP_CbPauseAuthorization
C
uint16_t BLE_L2CAP_CbPauseAuthorization(uint16_t spsm, bool enable);Description
Pauses or resumes authorization for a specific SPSM (Simplified Protocol/Service Multiplexer).
Note
By default, all SPSMs are authorized. Use this API to pause authorization if required.
Parameters
| Parameter | Description |
|---|---|
| [in] spsm | The SPSM value. |
| [in] enable | Set to true to pause authorization (unauthorized). Set to false to resume authorization (authorized). |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully configured the SPSM authorization. |
| MBA_RES_INVALID_PARA | The specified SPSM is unknown or invalid. |
