<?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 disable the GATT service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90146/how-to-disable-the-gatt-service</link><description>I want to send the data packet from the BLE using GATT service and after that BLE mesh is initialize, using the Mesh opcode need to Disable the GATT service of the BLE. For this do have any API to disable the service? 
 
 1. How to disable the GATT BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jul 2022 13:02:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90146/how-to-disable-the-gatt-service" /><item><title>RE: How to disable the GATT service</title><link>https://devzone.nordicsemi.com/thread/377872?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 13:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063886b1-841b-48d5-9351-d1faf9c88c8e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. The nRF Mesh app showcases Bluetooth mesh. You cannot use that app to connect using BLE, and you cannot use that app to scan for normal BLE advertisements. It is for Bluetooth mesh operations only. For BLE, you can use the nRF Connect app.&lt;/p&gt;
&lt;p&gt;There is nothing preventing you from writing an app capable of both technologies, apart from the time and resources needed, but we have decided to have two separate development apps: One for Bluetooth mesh (nRF Mesh app) and one for BLE (nRF Connect app).&lt;/p&gt;
&lt;p&gt;2. For that, you must call both APIs from your code: The mesh API for sending a mesh message, and the BLE API for sending an advertising with the same data. For the BLE advertisement, the data should be encoded in the Manufacturer specific data. Alternatively, if you want to send it not as advertisement but in the BLE service, then use the service by writing to (or notifying) the given characteristic.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable the GATT service</title><link>https://devzone.nordicsemi.com/thread/377809?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 09:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796b0547-eacf-423b-bbc5-d17062293bc2</guid><dc:creator>jyoti yadav</dc:creator><description>&lt;p&gt;Thank you for your input.&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;some&amp;nbsp;more query,&lt;/p&gt;
&lt;p&gt;1.can we see the BLE Customized GATT service on the Nordic mesh app?&lt;/p&gt;
&lt;p&gt;2. Can we advertise same packet of advertisement data for both mesh and ble?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable the GATT service</title><link>https://devzone.nordicsemi.com/thread/377602?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 11:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5395777-c9fe-4eaa-a2c1-8c1b6f87b51c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. How to disable the GATT BLE custom service? is there is any API for disable this?[/quote]
&lt;p&gt;GATT services cannot be disabled runtime. This is according to the Bluetooth specification, where the GATT table cannot be changed runtime. In order to change the composition of the device (the GATT services and characteristics available on the device), you must reset the device and initialize the stack with the new composition.&lt;/p&gt;
&lt;p&gt;There are some further limitations as well: You need the service changed characteristic, in order to tell any bonded devices that the GATT table has changed. Without that, you are not allowed to change the GATT table at all.&lt;/p&gt;
[quote user=""]2. Can we send the cmd from the Mesh to disable the BLE GATT service.[/quote]
&lt;p&gt;You could make a custom mesh model for triggering a reset, and use stored data (or GPREGRET register) to signal to the application that it should not initialize the GATT service on startup.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>