2017-01-20 02:42:36 +01:00
|
|
|
.. _peripheral_hids:
|
|
|
|
|
|
|
|
Bluetooth: Peripheral HIDs
|
|
|
|
##########################
|
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
|
|
|
Similar to the :ref:`Peripheral <ble_peripheral>` sample, except that this
|
|
|
|
application specifically exposes the HID GATT Service. The report map used is
|
|
|
|
for a generic mouse.
|
|
|
|
|
2023-01-23 20:18:10 +01:00
|
|
|
In the default configuration the sample uses passkey authentication (displays a
|
|
|
|
code on the peripheral and requires that to be entered on the host during
|
|
|
|
pairing) and requires an authenticated link to access the GATT characteristics.
|
|
|
|
To disable authentication and just use encrypted channels instead, build the
|
|
|
|
sample with `CONFIG_SAMPLE_BT_USE_AUTHENTICATION=n`.
|
2017-01-20 02:42:36 +01:00
|
|
|
|
|
|
|
Requirements
|
|
|
|
************
|
|
|
|
|
|
|
|
* BlueZ running on the host, or
|
|
|
|
* A board with BLE support
|
|
|
|
|
|
|
|
Building and Running
|
|
|
|
********************
|
|
|
|
|
2019-03-08 23:21:37 +01:00
|
|
|
This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_hids` in the
|
2017-01-26 17:23:42 +01:00
|
|
|
Zephyr tree.
|
|
|
|
|
2019-03-07 15:59:20 +01:00
|
|
|
See :ref:`bluetooth samples section <bluetooth-samples>` for details.
|