I am trying to write a program in C to have my central device(nRF52840 dongle) read the RSSI from a peripheral. I have never written C code before and was told to use:
TASKS_RSSISTART - Start the RSSI and take one single sample of the received signal strength
TASK_RSSISTOP - Stop the RSSI measurement
RSSISAMPLE - changes due to the temperature correction factor
I have copied a few pieces of code that I found online to a file in a project in SEGGER. The code segments are displayed bellow.
I would then like to use PuTTY to read the cli example from nordic and then connect the RSSI code to the command line.
How should I piece the code together? How should I get the code to connect to the nRF52840 dongle?