zephyr/samples/bluetooth/central
Joakim Andersson 09b89ef585 Bluetooth: samples: Unref conn object on create connection timeout
Handle connected callback with error status not releasing the default
conn object in central samples. This can happen when the initiator fails
to create the connection within 3 seconds and is canceled by the host.

Also restart the scan role in this case.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-02-25 14:12:04 +02:00
..
src Bluetooth: samples: Unref conn object on create connection timeout 2020-02-25 14:12:04 +02:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
prj.conf
README.rst doc: Bluetooth: Documentation overhaul 2019-03-13 10:40:05 +01:00
rv32m1_vega_ri5cy.overlay samples: bluetooth: add overlays for RV32M1 SoC for BLW SW LL 2019-11-08 15:38:57 +01:00
sample.yaml samples: add test identifier 2019-03-29 17:44:11 -04:00

.. _bluetooth_central:

Bluetooth: Central
##################

Overview
********

Application demonstrating very basic BLE Central role functionality by scanning
for other BLE devices and establishing a connection to the first one with a
strong enough signal.



Requirements
************

* BlueZ running on the host, or
* A board with BLE support

Building and Running
********************
This sample can be found under :zephyr_file:`samples/bluetooth/central` in the
Zephyr tree.

See :ref:`bluetooth samples section <bluetooth-samples>` for details.