Other Parts Discussed in Thread: BLE-STACK
I have the simple central project as a baseline, and am using a serial interface to start/stop scanning. Upon the SC_EVT_SCAN_DISABLED event, I get the number of devices from the message, then loop over them calling GapScan_getAdvReport. The pData field in the GapScan_Evt_AdvRpt_t variable is null. The length is non-zero. How do I access the advertising data?
case SC_EVT_SCAN_DISABLED:
{
// Generate device record output
numReport = ((GapScan_Evt_End_t*) (pMsg->pData))->numReport;
if (numReport > 0)
{
for (i = 0; i < numReport; i++)
{
// Get the address from the report, convert it to string, and
// copy the string to the address buffer
GapScan_getAdvReport(i, &advRpt);
uartSendDeviceRpt(advRpt.addr, advRpt.rssi, advRpt.dataLen, (char *)advRpt.pData);
My function uartSendDeviceRpt always receives a null pointer for advRpt.pData.