Dear Nordic,
I need to read the data being advertised by a particular beacon and save it to another variable. Is there a way to do it..?
Dear Nordic,
I need to read the data being advertised by a particular beacon and save it to another variable. Is there a way to do it..?
Sure indeed, you will get the data in structure upon receiving of BLE_GAP_EVT_ADV_REPORT
event. See message sequence chart here and structure description here on Nordic Infocenter. Unfortunately you had provided basically zero context of your question (like which nRF5x chip you have, what is target board, what BLE stack you run/want to run, what FW project example you start from etc.) so it's hard to help you more;)
Thank You @endnode. I am using nRF52 DK PCA 10040 board. Since I was not sure on how to go about reading the data from the beacon, I haven't zeroed in on the base example.
Nice, so you have some base firmware implementing GAP Observer/Central role which is capable of scanning and receives BLE_GAP_EVT_ADV_REPORT
events?