I am not sure you understand what i am trying to ask.
Like you mentioned
- At device B when the device is in central mode, storing the RSSI value of device A in a buffer and after switching it to peripheral mode, sending it through the advertisement data.
- At device C, advertisement report data of Device B (i.e., Advreport.data) will contains the RSSI value of device A. RSSI value of advertisement report, Advreport.rssi of Device B
I am ONLY checking for the advertising device B( having the advertising RSSI data of device A) at device C.
I am not checking for two different advertising devices at device C. I am only checking for device B(because that is the only device i need).
What I am trying to state is At device C when i am trying to receive the RSSI value of device A (Advreport.data) that is stored in buffer, I am getting the values of both device A and device B from the buffer when I am displaying it on Uart Terminal.
Why am i getting the Rssi values of the device B along with device A when i can get advertising device B Rssi value through Advreport.rssi ??
I hope i am clear.Please kindly let me know what am i doing wrong.
Could you please share your peripheral(Device B) and central (Device C) projects so that we can check at our end ?
Could you please add the below code in your Central project.
Worked fine after implementing if(Advreport.dataLen!=0).