<?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>Non constant scan response</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16005/non-constant-scan-response</link><description>Is it possible to change data send in scan responses after each Advertising Event? I know that sd_ble_gap_adv_data_set() has constant input arguments, but it seems weird for me that I can&amp;#39;t change it. Maybe there is some smooth solution for this problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Aug 2016 16:09:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16005/non-constant-scan-response" /><item><title>RE: Non constant scan response</title><link>https://devzone.nordicsemi.com/thread/61050?ContentTypeID=1</link><pubDate>Sat, 27 Aug 2016 16:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933ee72e-04cc-49e9-bbc0-417857e4617e</guid><dc:creator>AndrzejB</dc:creator><description>&lt;p&gt;I was talking about scan response packets. Fortunatelly, I did what I want, placing my data inside manufacturer specific data structure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non constant scan response</title><link>https://devzone.nordicsemi.com/thread/61049?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0f471a-b286-4b35-95cb-4ae97b350a82</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;We are talking about advertising packets? If you want to stay BLE compliant, you should format the packets as proper advertising packets. For this reason&lt;code&gt;sd_ble_gap_adv_data_set()&lt;/code&gt; will check the format of the packet, as you can see from the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gaddbb12e078d536ef2e93b41d77ff6243"&gt;API documentation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non constant scan response</title><link>https://devzone.nordicsemi.com/thread/61048?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d740ffe3-7c57-44fc-8f78-33d2a02b00a6</guid><dc:creator>AndrzejB</dc:creator><description>&lt;p&gt;One more question, should I encode the date in the same way as advertising data or can I send bunch of my data in the way I want?  I mean if I have to use the structure ble_advdata_t&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non constant scan response</title><link>https://devzone.nordicsemi.com/thread/61047?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 07:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec97fdd7-1ce4-4caf-8a0e-30b8f3c9abf0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You can always make subsequent calls to &lt;code&gt;sd_ble_gap_adv_data_set()&lt;/code&gt; with another set of data. (The &lt;code&gt;const&lt;/code&gt; indicate that the function will not change the array you supply, not that you cannot update it and call &lt;code&gt;sd_ble_gap_adv_data_set()&lt;/code&gt; again).&lt;/p&gt;
&lt;p&gt;There is no event in the current SoftDevice that indicate that an advertising event has occurred. However, you can use Radio notification to be notified every time the radio is used, and change the advertising data at that time. If your device does not have any connection, the only radio TX activity will be due to an advertising event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>