<?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>Matter + BLE custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123220/matter-ble-custom-service</link><description>It is nRF54L15 + SDK 3.0 + Matter application. 
 I have developed a custom BLE service that is based on Nordic&amp;#39;s proprietary NUS BLE service. The BLE custom service is enabled at start up, connects to a BLE App for configuration and after that the App</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Jul 2025 14:01:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123220/matter-ble-custom-service" /><item><title>RE: Matter + BLE custom service</title><link>https://devzone.nordicsemi.com/thread/543625?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 14:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d9f7452-7cf8-4fa7-a997-4cf475a7aaca</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Subu,&lt;/p&gt;
[quote user=""]&lt;span&gt;4. After completion, stop the BLE server&lt;/span&gt;[/quote]
&lt;p&gt;In bt_nus_service.cpp for the NUSService::StopServer() function, there is a &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.0.0/samples/matter/common/src/bt_nus/bt_nus_service.cpp#L110"&gt;check that mIsStarted is false&lt;/a&gt; before calling the functions to stop the Bluetooth LE Service. Have you added a similar flag and check for your service?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The log and your description of your implementation indicate that there are some states which are not implemented in your application.&amp;nbsp;&lt;/p&gt;
[quote user=""]I have looked at the NUS services from door lock example.[/quote]
&lt;p&gt;Good that you are using the Door lock application as a reference. Have you also looked at the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.0/page/nrf/protocols/matter/getting_started/adding_bt_services.html"&gt;guide&lt;/a&gt; for adding Bluetooth LE services to a Matter application? It uses the Door lock sample as an example for how to implement the steps the guide describe.&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></channel></rss>