<?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>zephyr indication registration &amp;amp; enable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43693/zephyr-indication-registration-enable</link><description>I am operating as a Central. How do I register and enable a discovered characteristic&amp;#39;s indication? 
 
 I do the following and the subscribe passes but then the kernel crashes provides a warning and then crashes. 
 uint16_t auth_desc_handle = 0; struct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Feb 2019 14:32:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43693/zephyr-indication-registration-enable" /><item><title>RE: zephyr indication registration &amp; enable</title><link>https://devzone.nordicsemi.com/thread/171425?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 14:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c0a2794-350d-4b92-a87f-48c95a78c2b6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Notification and indication is more or less the same, just that indication is ACKed on a application level (and on the link-layer for that matter).&lt;/p&gt;
&lt;p&gt;It looks like it uses the same members etc, just that the .value member has a different value. Here from the shell application:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/shell/gatt.c#L442"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/shell/gatt.c#L442&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you still have issues handling the CCCDs, I&amp;#39;d recommend that you reach out in one of the zephyr channels.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr indication registration &amp; enable</title><link>https://devzone.nordicsemi.com/thread/171231?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 19:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb0129b-276d-441f-9070-08c5acb103ee</guid><dc:creator>mrowe</dc:creator><description>&lt;p&gt;&lt;span&gt;Yep .. did the discover and know the handle of the CCCD ...but ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The &amp;quot;struct bt_gatt_subscribe_params&amp;quot; structure does not have a .indicate member ?? so I was thinking it was incorrect to subscribe with BT_GATT_CCC_INDICATE in the notify member ... don&amp;#39;t know about that .. but it seems wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The warning appears directly after I subscribe.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr indication registration &amp; enable</title><link>https://devzone.nordicsemi.com/thread/171224?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 18:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408b8835-664c-4c68-8b96-cb13a6b5330a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We recommend that you contact the zephyr community regarding the applications in their code base:&amp;nbsp;&lt;a href="https://www.zephyrproject.org/developers/how-to-contribute/"&gt;https://www.zephyrproject.org/developers/how-to-contribute/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""][00:00:25.559,112] &amp;lt;wrn&amp;gt; bt_ctlr_hci: handle: 0x0000, CSA: 0.[/quote]
&lt;p&gt;CSA stands for &amp;quot;channel selection algorithm&amp;quot;, and I assume that this is a generic warning stating that your link is using the older algorithm. This is likely not related to&amp;nbsp;the crash.&amp;nbsp;&lt;/p&gt;
[quote user=""]How do I register and enable a discovered characteristic&amp;#39;s indication?[/quote]
&lt;p&gt;&amp;nbsp;The sequence in this example (&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/master/samples/bluetooth/central_hr/src/main.c#L43"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/master/samples/bluetooth/central_hr/src/main.c#L43&lt;/a&gt;) is that you discover the UUIDs you want, then if you have found them all; you&amp;nbsp;subscribe for CCCD.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>