<?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>Struggling to subscribe to gatt notifications and write to a gatt characteristic on nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122314/struggling-to-subscribe-to-gatt-notifications-and-write-to-a-gatt-characteristic-on-nrf52840</link><description>Hello, I have an nrf52840 which is acting as a central. I have a peripheral device which I can connect to, and the service that is discovered has the following table: 
 ATT[1]: UUID: 0x2803 Handle: 0x001B Value: Characteristic: 0x291bed1a-6e3e-11ec-90d6</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jun 2025 20:09:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122314/struggling-to-subscribe-to-gatt-notifications-and-write-to-a-gatt-characteristic-on-nrf52840" /><item><title>RE: Struggling to subscribe to gatt notifications and write to a gatt characteristic on nrf52840</title><link>https://devzone.nordicsemi.com/thread/540084?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2025 20:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6901beab-99ae-4b93-8d30-6c9aa9818c89</guid><dc:creator>brock.hargreaves</dc:creator><description>&lt;p&gt;There was two problems, one is that I was using&amp;nbsp;bt_gatt_write_without_response_cb when I should have been using bt_gatt_write, the second is that I was using the wrong CCC handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Struggling to subscribe to gatt notifications and write to a gatt characteristic on nrf52840</title><link>https://devzone.nordicsemi.com/thread/539792?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 22:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40cfb84f-4d32-4a37-bd60-ba7e5f0e8e15</guid><dc:creator>brock.hargreaves</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp;, I&amp;#39;m not sure what I was doing wrong before, but I repeated the same steps and I get the full log now. I&amp;#39;m seeing some errors but not sure what to make of them. Could you take a look?&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6644.sniffer_5F00_log.pcapng"&gt;devzone.nordicsemi.com/.../6644.sniffer_5F00_log.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Struggling to subscribe to gatt notifications and write to a gatt characteristic on nrf52840</title><link>https://devzone.nordicsemi.com/thread/539791?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 21:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ed72c0-dcba-4cee-a941-071882eb6a3e</guid><dc:creator>brock.hargreaves</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m struggling to follow the packets into the connection of the peripheral. I&amp;#39;m using the nrf52840 dongle with the 4.1.1 firmware from here:&amp;nbsp;&lt;a id="" href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I followed the instructions on sniffing a single peripheral connection here:&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-ble-sniffer/guides/common_actions_sniffing_conn_single_periph.html"&gt;https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-ble-sniffer/guides/common_actions_sniffing_conn_single_periph.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I selected the peripheral from the dropdown. However, I still only receive advertising packets (ADV_IND). If I set Wireshark to receive all packets from all devices, I can see the CONNECT_IND packet that is being sent from the central but that&amp;#39;s all I ever get. I don&amp;#39;t see any packets involving the MTU exchange, PHY update, enabling notifications, etc.&lt;br /&gt;&lt;br /&gt;What am I doing wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Struggling to subscribe to gatt notifications and write to a gatt characteristic on nrf52840</title><link>https://devzone.nordicsemi.com/thread/539622?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 20:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caff1a3e-d3f4-4de5-9441-1f8cf36f5632</guid><dc:creator>brock.hargreaves</dc:creator><description>&lt;p&gt;Hi Sigurd, thank you for the suggestion. I will respond again as soon as I acquire the sniffer log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Struggling to subscribe to gatt notifications and write to a gatt characteristic on nrf52840</title><link>https://devzone.nordicsemi.com/thread/539548?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 12:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f28550e0-626b-4a2d-8ce5-cde02e153bfa</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;A sniffer log would be helpful here to see what&amp;#39;s happening&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>