-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Describe the bug
I tried to make shell sample code of ./tests/bluetooth/shell/ to initial periodic scanner on nRF52840. However, when I typed "bt per-adv-sync-create 00:11:22:33:44:55 random 0 skip 0 timeout 2000", it always return "Failed to set periodic advertising
-35".
I dug into it and found it means Periodic Advertising is not supported. The root cause is that that nRF52840 should define
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_SYNC_PERIODIC=y
if the developers want to use Periodic Advertising and these are experimental. I suggest that add these two flags on prj.conf.
To Reproduce
Steps to reproduce the behavior:
- cd ./tests/bluetooth/shell/
- west build -p auto -b nrf52840dk_nrf52840 ./
- west flash
- open a terminal of the right com port
- type "bt init"
- type "bt per-adv-sync-create 00:11:22:33:44:55 random 0 skip 0 timeout 2000"
Expected behavior
Return an error code, -35.
Impact
Periodic sync doesn't work.
Logs and console output
Environment (please complete the following information):
Additional context