<?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 can I change UUID or Major/Minor numbers once a GPIO is toggled? i.e. dynamically during normal advertisement. Is there any example in the SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32494/how-can-i-change-uuid-or-major-minor-numbers-once-a-gpio-is-toggled-i-e-dynamically-during-normal-advertisement-is-there-any-example-in-the-sdk</link><description>Once GPIO is pressed (shorted to ground), I want to change the value of UUID or Major/Minor number 
 If not, the device will continue to advertise the previous values</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Mar 2018 20:53:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32494/how-can-i-change-uuid-or-major-minor-numbers-once-a-gpio-is-toggled-i-e-dynamically-during-normal-advertisement-is-there-any-example-in-the-sdk" /><item><title>RE: How can I change UUID or Major/Minor numbers once a GPIO is toggled? i.e. dynamically during normal advertisement. Is there any example in the SDK?</title><link>https://devzone.nordicsemi.com/thread/125061?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 20:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe58d90b-5d13-4688-b34b-ea5a950a510a</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;I found the answer: Just change to false:&amp;nbsp;nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(true);&lt;/p&gt;
&lt;p&gt;to:&amp;nbsp;nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change UUID or Major/Minor numbers once a GPIO is toggled? i.e. dynamically during normal advertisement. Is there any example in the SDK?</title><link>https://devzone.nordicsemi.com/thread/125059?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 20:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca06654-ce81-4277-81a1-30fa644fbb7f</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;I found that using the pin_change_int example, the current consumption is too high.&amp;nbsp; Where can I find an example of using &amp;quot;Sense&amp;quot; approach?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change UUID or Major/Minor numbers once a GPIO is toggled? i.e. dynamically during normal advertisement. Is there any example in the SDK?</title><link>https://devzone.nordicsemi.com/thread/125054?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 18:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381f5334-d8ee-4606-bd52-5c9bac627b31</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Thank you - works perfect!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change UUID or Major/Minor numbers once a GPIO is toggled? i.e. dynamically during normal advertisement. Is there any example in the SDK?</title><link>https://devzone.nordicsemi.com/thread/125022?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 14:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38ffe5c-4d92-4e1a-bc3b-dd7eaf4069d6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You will need to detect the button press. You will find examples doing this. E.g. the examples found in:&lt;/p&gt;
&lt;p&gt;SDK\examples\peripheral\pin_change_int&lt;/p&gt;
&lt;p&gt;SDK\examples\peripheral\bsp&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you need to change the advertising data. You can do this by using the sequence: Stop advertising -&amp;gt; advertising_init (with your new advertising data) --&amp;gt; start advertising&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have any examples doing exactly this at this point in time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>