Hi. . Folks
How to scan and count the number of ble devices near me using nRF52 development kit . Guest me an idea
Hi. . Folks
How to scan and count the number of ble devices near me using nRF52 development kit . Guest me an idea
Hello,
I am not sure I understand you correctly, but if you intend to find the number of peripherals advertising near your device then I suppose you could use the BLE_GAP_EVT_ADV_REPORT event and count the peer_addresses. Be advised that centrals do not advertise, and peripherals may advertise as anonymous - so you are not guaranteed to find all BLE devices near you.
In the case that I misunderstood you, you might instead be looking for the nRF Sniffer tool to be monitor surrounding BLE traffic.
This is a powerful tool to have available when developing BLE applications.
Please let me know if this does not answer your question.
Best regards,
Karl
Hello,
I am not sure I understand you correctly, but if you intend to find the number of peripherals advertising near your device then I suppose you could use the BLE_GAP_EVT_ADV_REPORT event and count the peer_addresses. Be advised that centrals do not advertise, and peripherals may advertise as anonymous - so you are not guaranteed to find all BLE devices near you.
In the case that I misunderstood you, you might instead be looking for the nRF Sniffer tool to be monitor surrounding BLE traffic.
This is a powerful tool to have available when developing BLE applications.
Please let me know if this does not answer your question.
Best regards,
Karl