Hi,
I'm using the new Event Trigger API in a BLE peripheral to set up a connection event trigger as demonstrated in this official sample. The trigger seems to work fine, but I've noticed that CONFIG_BT_CENTRAL=y is required, even though my device is a BLE peripheral. Otherwise, I'm getting this error
[00:00:06.745,758] <wrn> bt_hci_core: opcode 0xfd13 status 0x01
[00:00:06.745,788] <err> my_app: Error for command SDC_HCI_OPCODE_CMD_VS_SET_CONN_EVENT_TRIGGER (-5)
The problem is that setting CONFIG_BT_CENTRAL=y seems to increase the image size in an optimized build by about 60 kbytes, which is not ideal. Am I missing something here, or is CONFIG_BT_CENTRAL indeed required to set up a connection event trigger in a BLE peripheral using the Event Trigger API? If so, is there any way I can reduce the impact it has on the image size?
I'm using the the nRF52840 DK and nRF Connect SDK v2.6.0.
Thanks