Read RSSI on a project based on zephyr BLE stack

Hi all!

I know similar questions have been asked before, but I am very new to Zephyr / nrfxlib and cannot really solve my issue reading the answers to similar questions.

I would like to read out the RSSI of my active connection (acting as a peripheral). I have read about the function sdc_hci_cmd_sp_read_rssi() but I am not sure how to use it, so far I have only used functions from the Zephyr BLE stack, not from the nrfxlib, and I understand they work at a different abstraction layer. For instance, this function requires a handle as an input, which I don't know how to obtain. I also don't know what I need to include in my project, which is based on the zephyr peripheral example, in order to have access to these lower level functions.

I would highly appreciate some guidance and an example on how to obtain the RSSI, either using this function or one from the Zehpyr BLE stack.

Thanks a lot!

Related