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
CMakeLists.txt
prj.conf
README.rst
rv32m1_vega_ri5cy.overlay
sample.yaml

.. _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.