Hello,
I am working with the "simple_central" code and under the "SimpleCentral_processAppMsg" function I want to log the following values of detected devices - device address and their RSSI values.
I have added following piece of code inside the " case SC_EVT_ADV_REPORT:" of "SimpleCentral_processAppMsg" function
Log_printf(LogModule_App1, Log_INFO, "RSSI = %d Address = %s ",pAdvRpt->rssi,Util_convertBdAddr2Str(pAdvRpt->addr));
The code builds without error but the values logged are random
I have tried using Log_Buf as well but similar thing is happening with that as well.
Thanks,
Garvit