I'm creating a simple program for the nRF52840 dongle that is running a RSSI scanner. Scanning on different BLE channels in the environment. Much like the nRF connects "RSSI viewer".
I do however fail in order to get the RSSI value.
My goal is to scan for RSSI values while not connecting to any device, just scan a specific channel.
And if I have gotten it right does the sd_ble_gap_rssi_start need a "connection handler" as a parameter in order to work.
Which won't work as I got no connection handler.
I did also read in the nrf52840.h file about a TASKS_RSSISTART which could work. But I don't really know how to use it in code.
What approach should I take in order to be able to get the RSSI value from a specific channel without establishing a connection to a device. (More or less like the nRF connects "RSSI viewer")
BR
Mark