This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can GAPROLE_SCAN_RSP_DATA be read from the central side?

Hi All,

I am building applications based on SimpleBLEPeripheral and ~Central projects. By default the central reads the address of the recently discovered devices.  My first question is: where did these adresses come from?

I would like to get more detailed information about the currently advertising devices which can be set on the peripheral side. I think that scan response data (GAPROLE_SCAN_RSP_DATA) is suitable for doing this, but don't know how to read this data form the central side. I have found that this somehow connected to active scanning, but that's all. Do you have any suggestions?

Is there any way to read both the address and the latter string?

Thanks,

Gergo

  • When a scanner receives either an advertisement or a scan response message (while active scanning), it will send a GAP_DEVICE_INFO_EVENT to the central role profile as an OSAL message. The central profile will forward this message to the application. You can cast the message to a gapDeviceInfoEvent_t type, and parse the data from it.

  • Hi Willis,

    Thanks for your fast response, now it's clear for me.

    Best regards,

    Gergo

  • Hi,

    I also have a question about ScanSpData【】,as follow:

    Prepheral is a BLE device, and Central is an Iphone.

    There is two Programs(A and B) for the BLE deve,only the difference between Programs is the local name in ScanSpData【】。The Local name of  A  Program is A; The Local name of B  Program is B.

    When the first time, downloaded A  to the BLE, and Iphon discover the device and show its name 'A'.

    But, When update B to the same BLE, and Iphon discover the device and show its name also 'A',not ‘B’, until after connection.(After connection, it can show the right name 'B')

    My question: in this case,why Iphone can not show the right name? wihout connection, How can I do, if I want to get the right name?

    Ths.