Class BluetoothGattService


  • public class BluetoothGattService
    extends AbstractBluetoothObject
    Wrapper class which represents a GATT service provided by a remote device.
    Author:
    hypfvieh
    • Constructor Detail

      • BluetoothGattService

        public BluetoothGattService​(GattService1 _service,
                                    BluetoothDevice _device,
                                    String _dbusPath,
                                    org.freedesktop.dbus.connections.impl.DBusConnection _dbusConnection)
    • Method Detail

      • getInterfaceClass

        protected Class<? extends org.freedesktop.dbus.interfaces.DBusInterface> getInterfaceClass()
        DBus-Interface class used in this wrapper object.
        Specified by:
        getInterfaceClass in class AbstractBluetoothObject
        Returns:
        class which implements the interface
      • refreshGattCharacteristics

        public void refreshGattCharacteristics()
        Re-queries the GattCharacteristics from the device.
      • getUuid

        public String getUuid()
        From bluez Documentation:

        128-bit service UUID.

        Returns:
        uuid, maybe null
      • isPrimary

        public Boolean isPrimary()
        From bluez Documentation:

        Indicates whether or not this GATT service is a
        primary service. If false, the service is secondary.

        Returns:
        maybe null if feature is not supported
      • getIncludes

        public Object[] getIncludes()
                             throws BluezNotImplementedException
        From bluez Documentation:

        Not implemented
        Array of object paths representing the included
        services of this service.

        Returns:
        object array, maybe null
        Throws:
        BluezNotImplementedException - always - because currently not supported