<?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>nrf52 SAADC, ADV</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27389/nrf52-saadc-adv</link><description>Hi, 
 I am trying to use the SAADC via ble when noridc is connecting with other device and adding value to advartasing. This is my code but i&amp;#39;ve got some problems. 
 1) SAADC 
 AFTER EDIT 
 void saadc_callback(nrf_drv_saadc_evt_t const * p_event)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Nov 2017 13:59:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27389/nrf52-saadc-adv" /><item><title>RE: nrf52 SAADC, ADV</title><link>https://devzone.nordicsemi.com/thread/108162?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 13:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6db7081-587d-4a2c-b627-bc772f91e5e1</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;If you use one of the standard advert formats like iBeacon, alt beacon or eddystone you can put a full 16 bits into the slot for major or minor and the data will show up in most ble scanners by default.
Again though on the firmware side the 16 bits is two elements so you have to play with the bits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 SAADC, ADV</title><link>https://devzone.nordicsemi.com/thread/108161?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 13:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bba8814-dc49-459f-aaba-6d5ece34e5c1</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;The advertising data is just an array of bytes that is passed to the SD.
All you need to do write your data into whichever advertising elements you wish to change and re-init advertising.  You don&amp;#39;t even need to stop advertising, just re-init.
So looks something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_beacon_info [element of your choosing]= SAADC_Sample; 
advertising_init(advtime);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is based on SDK11, but I don&amp;#39;t think it has changed much. Since the advert elements are 8 bits you will need to play with the bits and use two elements to send a 10 or 12 bit SAADC sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>