<?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>Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57240/generic-access-profile-write-event-handler</link><description>In ble_app_blinky_pca10040e_s112 example, Generic access service has read and write permission. 
 When writing the name, I want to handle this event and change the advertisement name. 
 How do I do this? 
 When I write the name, It triggers ble_evt_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2020 17:57:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57240/generic-access-profile-write-event-handler" /><item><title>RE: Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/thread/233136?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 17:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7284d9d2-efea-4541-9254-9bebef8766eb</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;I understood but then what variable is holding the value of the device name?&amp;nbsp; It gets updated after I write to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/thread/232732?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 07:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c6ccf40-f233-4029-91f1-0682a2ee264e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;no, this would be something that you have to implement yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/thread/232689?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 22:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f816df3-e6a6-4c33-bf57-0aa26086733c</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;I understood that. I want to know if there any exists? As when I change the device name from App, it gets updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/thread/232498?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 09:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7407d570-50ff-413f-81cf-7d69e057819c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you&amp;#39;ve said, a write to the Generic Access characteristic Device Name generates a&amp;nbsp;&lt;strong&gt;BLE_GATTS_EVT_WRITE&lt;/strong&gt; event (0x050) in the ble handler. The ble_app blinky project doesn&amp;#39;t have a case in the ble handler that handles this event, you would therefore have to make a case in the switch statement that handles this event and then changes the name as in the post i linked in the previous reply. I hope that answered you question.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/thread/232387?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 15:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:169091af-374a-415c-b0e6-e461b33d0a62</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I went through that post. I understood how to change the device name, that is not the question. I want to handle the generic access profile write event. I could not find any way to do this in S112.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generic access profile write event handler</title><link>https://devzone.nordicsemi.com/thread/232349?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 13:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5574025c-cb4b-4477-9675-bd8146e5ed81</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This has been discussed before numerous times in the forum, see for example &lt;a href="https://devzone.nordicsemi.com/nordic/backstage/f/backstage-forum/56278/how-to-change-the-device-name-by-ble_app/227916#227916"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>