BLE_GAP_SetDefaultSubrate
PIC32CX-BZ6
C
uint16_t BLE_GAP_SetDefaultSubrate(BLE_GAP_SubrateParams_T *p_subrateParams);
Description
Sets the initial values for the acceptable parameters for subrating requests.
Note
This command should be used only after the BLE_GAP_EVT_FEATURE_EXCHANGE_COMPL event has been received.The following conditions will result in an MBA_RES_INVALID_PARA response:
Subrate Max × (Max Latency + 1) is greater than 500.
Current connection interval × Subrate Max × (Max Latency + 1) is greater than or equal to half the Supervision Timeout parameter.
Subrate Max is less than Subrate Min.
Continuation Number is greater than or equal to Subrate Max.
Parameters
Parameter | Description |
---|---|
[in] p_subrateParams | Pointer to a BLE_GAP_SubrateParams_T structure containing the subrate parameters. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sets the initial values for the acceptable parameters for subrating requests. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |