Dear Team,
where i can check the RSSI value in simple central code.
my requirement is read the rssi value and stored into the another variable and transfer into the packet.
Regards,
Shrikant K
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear Team,
where i can check the RSSI value in simple central code.
my requirement is read the rssi value and stored into the another variable and transfer into the packet.
Regards,
Shrikant K
Hey Shrikant,
The out of box simple_central example contains a clock event to regularly read the RSSI of a connection. This is done by calling the HCI_ReadRssiCmd. The requirement for calling this api is that you are already in a connection, as the rssi is taken from the connection event callbacks.
You may also be able to use the Gap_RegisterConnEventCb() API to register a callback. You'll find the rssi passed into the Gap_ConnEventRpt_t struct under lastRssi. For an example on using this API, you can check simple_peripheral.
Hope this helps.