ref. an earlier ticket, CAF BLE state BT connection limit
I am using ncs 2.0.0 on a custom nRF52840 board
When enabling the CAF BLE state module, I get a build assert error due to
BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
(ARRAY_SIZE(active_conn) == 1));
If I enable only CONFIG_BT_PERIPHERAL, all is OK, but if I in addition enable CONFIG_BT_CENTRAL, the build asserts as shown above.
My project (a BLE peripheral) does not need to be BLE central that connects to a peripheral. But it needs to have observer role.
I could, instead set CONFIG_BT_OBSERVER=y instead of CONFIG_BT_CENTRAL, but I also need the scan library for setting up scan filters, which depends on CONFIG_BT_SCAN, which again depends on CONFIG_BT_CENTRAL, and then we are back again to the build assert in the CAF module ble_state.c.
Would it be possible to change that build assert test? Or alternatively enable the scan library without having to enable CONFIG_BT_CENTRAL?