The HIDs sample is currently setup with a passkey callback and requires authenticated write and read access. Add a sample option to disable the passkey callbacks, and automatically set the GATT attributes as encryption required. This is a useful sample setup as real world HID devices (mice, keyboards...) usually don't have a passkey mechanism, and removing the callback to reproduce that setup while not changing the GATT permission leads to automatic disconnections for encryption failures that can be fairly hard to troubleshoot. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
19 lines
543 B
YAML
19 lines
543 B
YAML
sample:
|
|
name: Bluetooth Peripheral HIDs
|
|
description: Bluetooth Low Energy HID-over-GATT service sample
|
|
tests:
|
|
sample.bluetooth.peripheral_hids:
|
|
harness: bluetooth
|
|
platform_allow: qemu_cortex_m3 qemu_x86
|
|
tags: bluetooth
|
|
integration_platforms:
|
|
- qemu_cortex_m3
|
|
sample.bluetooth.peripheral_hids.no_authentication:
|
|
harness: bluetooth
|
|
extra_configs:
|
|
- CONFIG_SAMPLE_BT_USE_AUTHENTICATION=n
|
|
platform_allow: qemu_cortex_m3 qemu_x86
|
|
tags: bluetooth
|
|
integration_platforms:
|
|
- qemu_cortex_m3
|