<?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>Can I put measured data in the Scan Response packet?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12564/can-i-put-measured-data-in-the-scan-response-packet</link><description>I&amp;#39;m looking at an application where it would be beneficial to be able to read data from the bluetooth device as it passes. It would be easiest for me to do this by simply reading the scan response data if it was possible to put the measured data in there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Mar 2016 15:46:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12564/can-i-put-measured-data-in-the-scan-response-packet" /><item><title>RE: Can I put measured data in the Scan Response packet?</title><link>https://devzone.nordicsemi.com/thread/47694?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 15:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecef458f-a46b-49f0-a8c8-ebb889bbeda5</guid><dc:creator>Bill Siever</dc:creator><description>&lt;p&gt;Remember that the Scan Response must be requested, so a passive scanner won&amp;#39;t see the updates. If possible, it&amp;#39;s often better to put the dynamic data in the advertising data rather than the scan response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I put measured data in the Scan Response packet?</title><link>https://devzone.nordicsemi.com/thread/47693?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 12:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73942eb9-e644-4dc9-ae41-f9e031cabd66</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;no you don&amp;#39;t just update the variable, you actually have to set it into the softdevice, it doesn&amp;#39;t keep a reference to it, it copies it. &lt;code&gt;sd_ble_gap_adv_data_set()&lt;/code&gt; is the function which actually sets the binary advertising data which actually goes out over the air.&lt;/p&gt;
&lt;p&gt;And for non-connectable, there&amp;#39;s a flag for advertising type. If you&amp;#39;re using the advertising module, which I don&amp;#39;t, you&amp;#39;ll have to look through the code for that to see what it&amp;#39;s calling. I suspect that module has a mode where it advertises connectable when there&amp;#39;s no connection and non-connectable when in connection, if you get it into that mode it&amp;#39;ll start and stop the adverts for you, you just need to encode and set the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I put measured data in the Scan Response packet?</title><link>https://devzone.nordicsemi.com/thread/47692?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 12:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26708657-c8b0-4db0-a674-a6bacb855d04</guid><dc:creator>Sensors</dc:creator><description>&lt;p&gt;So I&amp;#39;d just update the &lt;code&gt;ble_advdata_t sr_data;&lt;/code&gt; whenever I wanted it to change? How would I make advertising non-connectable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I put measured data in the Scan Response packet?</title><link>https://devzone.nordicsemi.com/thread/47691?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 12:07:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce10aabe-c536-4269-8dd1-94414f0eece7</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Change it whenever you want, change the advertising data or the scan data or both of them. Just set it and the next advertisement will go out with the new data.&lt;/p&gt;
&lt;p&gt;I use manufacturer data to transmit basic state on my device, including when it&amp;#39;s in connection (just make the advertising non-connectable). It&amp;#39;s easy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>