Hi all,
I used Proximity sample code to connect with a smartphone, then here comes two value which in IoT Toolbox app: RSSI and Tx Power. The rssi value keeps changing which seems normal, but the tx power is always zero.
I have two questions to ask,
1. How do I print the rssi value on the console to monitor it?
Here is my code,
static void RssiMeasurementTimerCallback(deviceId_t peerDeviceId, gapConnectionEvent_t* pConnectionEvent)
{
(void)Gap_ReadRssi(peerDeviceId);
int8_t rssi_val;
rssi_val = pConnectionEvent->eventData.rssi_dBm;
PRINTF("rssi: %d\n",rssi_val);
}
I set a timer to trigger it, but the value is 0 all the time.
2. Why the tx power value is always zero?
Thank you.