1Bluetooth: GATT Shell
2#####################
3
4The following examples assume that you have two devices already connected.
5
6To perform service discovery on the client side, use the :code:`gatt discover` command. This should
7print all the services that are available on the GATT server.
8
9On the server side, you can register pre-defined test services using the :code:`gatt register`
10command. When done, you should see the newly added services on the client side when running the
11discovery command.
12
13You can now subscribe to those new services on the client side. Here is an example on how to
14subscribe to the test service:
15
16.. code-block:: console
17
18        uart:~$ gatt subscribe 26 25
19        Subscribed
20
21The server can now notify the client with the command :code:`gatt notify`.
22
23Another option available through the GATT command is initiating the MTU exchange. To do it, use the
24:code:`gatt exchange-mtu` command. To update the shell maximum MTU, you need to update Kconfig
25symbols in the configuration file of the shell. For more details, see
26:zephyr:code-sample:`bluetooth_mtu_update`.
27