Bluetooth: host: Configurable time to run slave conn param update
Enable possibility to configure time a slave will wait until start of connection parameters update procedure after BT connection is established. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
6bdeeca6f5
commit
a2eb10a76d
2 changed files with 15 additions and 4 deletions
|
@ -359,6 +359,17 @@ config BT_CREATE_CONN_TIMEOUT
|
||||||
default 3
|
default 3
|
||||||
range 1 65535
|
range 1 65535
|
||||||
|
|
||||||
|
config BT_CONN_PARAM_UPDATE_TIMEOUT
|
||||||
|
int "Peripheral connection parameter update timeout in milliseconds"
|
||||||
|
default 5000
|
||||||
|
range 1 65535
|
||||||
|
|
||||||
|
help
|
||||||
|
The value is a timeout used by peripheral device to wait until it
|
||||||
|
starts the connection parameters update procedure to change default
|
||||||
|
connection parameters. The default value is set to 5s, to comply
|
||||||
|
with BT protocol specification: Core 4.2 Vol 3, Part C, 9.3.12.2
|
||||||
|
|
||||||
endif # BT_CONN
|
endif # BT_CONN
|
||||||
|
|
||||||
if BT_OBSERVER
|
if BT_OBSERVER
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
/* Peripheral timeout to initialize Connection Parameter Update procedure */
|
/* Peripheral timeout to initialize Connection Parameter Update procedure */
|
||||||
#define CONN_UPDATE_TIMEOUT K_SECONDS(5)
|
#define CONN_UPDATE_TIMEOUT K_MSEC(CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT)
|
||||||
#define RPA_TIMEOUT K_SECONDS(CONFIG_BT_RPA_TIMEOUT)
|
#define RPA_TIMEOUT K_SECONDS(CONFIG_BT_RPA_TIMEOUT)
|
||||||
|
|
||||||
#define HCI_CMD_TIMEOUT K_SECONDS(10)
|
#define HCI_CMD_TIMEOUT K_SECONDS(10)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue