Bluetooth: Allow to configure LE Create Connection timeout

Depending on perhiperal advertising interval 3 seconds might not be
enough and would result in cancelling pending connection. Make this
Kconfig configurable and let application to decide.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
Szymon Janc 2018-09-27 21:03:03 +02:00 committed by Johan Hedberg
commit f0f4147a57
2 changed files with 5 additions and 1 deletions

View file

@ -387,6 +387,10 @@ config BT_PERIPHERAL_PREF_TIMEOUT
where Conn_Interval_Max is given in milliseconds.
endif # BT_GAP_PERIPHERAL_PREF_PARAMS
config BT_CREATE_CONN_TIMEOUT
int "Timeout for pending LE Create Connection command in seconds"
default 3
range 1 65535
endif # BT_CONN
if BT_OBSERVER