Hi, all
Is there any example of reading and receiving beacon data? (beacon scanner example)
I want to read my beacon device data.
Hi, all
Is there any example of reading and receiving beacon data? (beacon scanner example)
I want to read my beacon device data.
Hi,
Do you need this for the purpose of making a device that can scan beacons, or do you simply need it for testing that your beacon works as intended?
There is no beacon scanner example in the SDK, although you could start with a central example in order to make one. (Change it so it does not connect to advertising peripherals, but rather just reports the contents of the advertising packets, possibly after filtering.)
If you only need to test your beacon, I suggest nRF Connect for Desktop, or nRF Connect for Android or iOS. E.g. as described in the Testing section of the Beacon Transmitter Sample Application documentation from nRF5 SDK v17.0.2.
Regards,
Terje
Hi, tesc
Thank you for reply.
Do you need this for the purpose of making a device that can scan beacons, or do you simply need it for testing that your beacon works as intended?
I want to make a device that can scan and read the data. (for study purposes.)
If there is no scanner example, which example can I change?
BR,
Lyrics
Hi, tesc
Thank you for reply.
Do you need this for the purpose of making a device that can scan beacons, or do you simply need it for testing that your beacon works as intended?
I want to make a device that can scan and read the data. (for study purposes.)
If there is no scanner example, which example can I change?
BR,
Lyrics
Hi,
In theory you could start with any of the BLE Central examples. For instance the BLE Heart Rate Collector Example. Note that the examples use the Scanning Module and perform filtering for finding only the kind of devices that they are supposed to connect to. You need to change the filters (or remove them entirely). You also need to set the connect_if_match
field of the scan init parameters to false
, in order for the module not to initiate a connection to matched advertisements.
Regards,
Terje