Bluetooth: Add simple timeout for connection establishment

Adds fiber which starts with some specified delay.
If the fiber is not cancelled, bt_disconnect is called to
cancel creation of connection.

Change-Id: I06667d970ba3398f205f19f1d2e76ab6c283f274
Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
This commit is contained in:
Mariusz Skamra 2015-07-17 13:11:53 +02:00 committed by Anas Nashif
commit f3232cb999
4 changed files with 50 additions and 5 deletions

View file

@ -34,6 +34,7 @@ config BLUETOOTH
bool
prompt "Bluetooth LE support [EXPERIMENTAL]"
default n
select NANO_TIMEOUTS
help
This option enables Bluetooth Low Energy support.