org.bluez.GattService(5)

πŸ’– NAME πŸ’–

org.bluez.GattService β€” the BlueZ D-Bus GattService API documentation, bestie. This is the manual page org.bluez.GattService(5), hanging out in Linux System Administration, and it’s here to explain the GATT service D-Bus situation. 🫢✨


✨ DESCRIPTION ✨

Okay so listen: GATT local/server and remote/client services share the same high-level D-Bus API. Same API, different side of the story. πŸ’…

Local/Server means a GATT based service that’s exported by a plugin or an external application. That’s the home-team situation. 🏠

Remote/Client means GATT services exported by the peer. That’s the other side of the Bluetooth connection. πŸ¦‹


πŸ¦‹ INTERFACE πŸ¦‹

πŸ’™ Client

  • Service: org.bluez
  • Interface: org.bluez.GattService1
  • Object path: [variable prefix]/{hci0,hci1,...}/dev_{BDADDR}/service#
  • Used by: bluetoothctl-gatt(1)

πŸ’œ Server

  • Service: unique name
  • Interface: org.bluez.GattService1
  • Object path: freely definable

πŸ’… Properties πŸ’…

Property time, bestie. These are the properties this interface brings to the group chat:

  • string UUID [read-only] β€” the 128-bit service UUID. πŸ’–
  • boolean Primary [read-only] β€” tells you whether or not this GATT service is a primary service. If it’s false, the service is secondary. No cap.
  • object Device [read-only, optional] β€” the object path of the Bluetooth device the service belongs to. Only present on services from remote devices. 🌈
  • array{object} Includes [read-only, optional] β€” an array of object paths representing the included services of this service. πŸŽ€
  • uint16 Handle [read-only] (client only) β€” service handle. 🧚
  • uint16 Handle [read-write, optional] (Server Only) β€” service handle. When available in the server it would attempt to use to allocate into the database which may fail; to auto allocate the value 0x0000 shall be used, which will cause the allocated handle to be set once registered. πŸ’€βœ¨

mwah πŸ’‹ β€” this page is brought to you by BlueZ (source/version) and October 2023 (date), with org.bluez.GattService(5) doing its little bow. xoxo, bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from