Hi,
We are working on migrating our SES SDK based code to NCS Zephyr.
Our board is nrf52833 based.
We have set up advertising for 1 Minute every time (via KCONFIG flag CONFIG_BT_LIM_ADV_TIMEOUT=60).
In addition (simply as a test) - we check via RTC if 2 minutes have passed since the last advertisement, and attempt to advertise again if so.
As long as the central does not connect - this continues successfully.
However - after the central connects (terminating with LOCAL_HOST_DISCONNECT from the central end, and therefore REMOTE_DISCONNECT from the zephyr peripheral), subsequent advertisements all fails with:
00> [00:06:15.120,086] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x200a status 0x12
00> [00:06:15.120,117] <err> bt_adv: bt_le_adv_start_legacy: Failed to start advertiser
00> Advertising failed to start (err -5)
Our adv (from example code) is:
Thanks!
Roi