<?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 to stop nus advertising in Matter</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122867/how-to-stop-nus-advertising-in-matter</link><description>Hi Team, 
 I have added the NUS function in the Matter project. After the commissioning broadcast is turned off, NUS broadcast will automatically start. I want to manually start and stop NUS broadcast. How should I handle this, ncs v3.0.0. 
 
 Best regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jul 2025 13:07:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122867/how-to-stop-nus-advertising-in-matter" /><item><title>RE: How to stop nus advertising in Matter</title><link>https://devzone.nordicsemi.com/thread/542768?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 13:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc71a55e-8254-4ebf-b513-0a1091d13e32</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Danny,&lt;/p&gt;
&lt;p&gt;Looks like the initialising of the NUS service is in App::Init &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.0.0/samples/matter/lock/src/app_task.cpp#L318"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you should remove the initialization from App:Init() and implement your manual trigger of starting the service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop nus advertising in Matter</title><link>https://devzone.nordicsemi.com/thread/542502?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 10:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:001658ae-4fb4-488e-b6d5-1f9552e25f08</guid><dc:creator>danny_zhang</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I couldn&amp;#39;t find the conditions to trigger the callback, and using the content from lines 61 and 69 directly won&amp;#39;t switch the&amp;nbsp;Nus advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop nus advertising in Matter</title><link>https://devzone.nordicsemi.com/thread/542133?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 14:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4155105-840b-464d-b541-297a55fee944</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Danny,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I understand it, the way that NUS advertising is configured to start/stop is to assign callbacks in the init function for the NUS Service. More specifically, on &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.0.0/samples/matter/common/src/bt_nus/bt_nus_service.cpp#L61"&gt;line 61&lt;/a&gt;&amp;nbsp;and &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.0.0/samples/matter/common/src/bt_nus/bt_nus_service.cpp#L69"&gt;line 69&lt;/a&gt; of v3.0.0/samples/matter/common/src/bt_nus/bt_nus_service.cpp.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you end up editing that file, please make sure that you keep the original functionality so that there are no conflicts with other samples using the file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How the implementation for the manual starting and stopping of advertising is done is up to you, but it looks like that file is a feasable starting point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>