<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to access scan response data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35673/how-to-access-scan-response-data</link><description>Hi, I am developing an IoT sensor (peripheral device) using SDK v11. 
 On my sensor, I have defined an advertising packet that broadcasts the complete local name and a scan response packet that broadcasts manufacturer specific data. Both of these are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jun 2018 22:26:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35673/how-to-access-scan-response-data" /><item><title>RE: How to access scan response data</title><link>https://devzone.nordicsemi.com/thread/137282?ContentTypeID=1</link><pubDate>Fri, 22 Jun 2018 22:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5b345d0-9fc0-4828-a4e8-d7a5ccbb2a5d</guid><dc:creator>David Andresky</dc:creator><description>&lt;p&gt;Sorry, I answered my own question. I see now that the&amp;nbsp;&lt;span&gt;ble_gap_evt_adv_report_t data type stores both scan response and advertising data in the data member and indicates which one using the scan_rsp member.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;typedef struct&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; ble_gap_addr_t peer_addr; /**&amp;lt; Bluetooth address of the peer device. */&lt;br /&gt;&amp;nbsp; &amp;nbsp; int8_t rssi; /**&amp;lt; Received Signal Strength Indication in dBm. */&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint8_t scan_rsp : 1; /**&amp;lt; If 1, the report corresponds to a scan response and the type field may be ignored. */&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint8_t type : 2; /**&amp;lt; See @ref BLE_GAP_ADV_TYPES. Only valid if the scan_rsp field is 0. */&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint8_t dlen : 5; /**&amp;lt; Advertising or scan response data length. */&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint8_t data[BLE_GAP_ADV_MAX_SIZE]; /**&amp;lt; Advertising or scan response data. */&lt;br /&gt;} ble_gap_evt_adv_report_t;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>