i had two nrf52dks where in that one broadcasts and another should read the data like rssi,major,minor,mac address and battery level of 1st nrf52dk
i had two nrf52dks where in that one broadcasts and another should read the data like rssi,major,minor,mac address and battery level of 1st nrf52dk
Hello,
Can you elaborate more on what you are trying to accomplish?
two nrf52dks where in that one broadcasts and another should read the data
The best way would be to look at the central (reads data) and peripheral (broadcasts data) examples. Once you have found what services you need, you can enable each service in the sdk_config.h using the Template Application as a starting point.
Kind regards,
Oeyvind

@Øyvind now my central (reads data) should read the whole data like rssi,major,minor,mac address and battery level of peripheral (broadcasts data) beacon which is shown in the picture above
I'm sorry, I am not sure what you mean. Did you get an answer to your question? Information about RSSI, address etc can be retrieved using the SoftDevice API, see documentation here.
A similar case from DevZone can be found here, however with another version of SDK and SoftDevice.
Let me know if this helps.
Kind regards,
Oeyvind
I'm sorry, I am not sure what you mean. Did you get an answer to your question? Information about RSSI, address etc can be retrieved using the SoftDevice API, see documentation here.
A similar case from DevZone can be found here, however with another version of SDK and SoftDevice.
Let me know if this helps.
Kind regards,
Oeyvind
but i am not getting correct answer anywhere that whether one(pheripheral) broadcasts and another(central) should read the data like rssi,major,minor,mac address and battery level of 1st nrf52dk
Yes - that would be how a BLE Beacon works.
https://en.wikipedia.org/wiki/Bluetooth_low_energy_beacon
If you want the Peripheral to broadcast specific stuff in its advertising data, then you have to write the code to make it so.
For example, see:
https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/ble_sdk_app_beacon
So you you need a Central which scans for advertising packets, and reads the data from them.
Hi,
Can you please be more specific in what you mean with the correct answer? Please provide some output of the incorrect answer. What board, SDK and SoftDevice are you using?
Thank you.
-Oeyvind