Package org.bluez

Interface LEAdvertisingManager1

All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface

public interface LEAdvertisingManager1 extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2023-02-20.
Based on bluez Documentation: advertising-api.txt.

Service: org.bluez
Interface: org.bluez.LEAdvertisingManager1

Object path:
/org/bluez/{hci0,hci1,...}

Supported properties:

byte ActiveInstances

Number of active advertising instances.

byte SupportedInstances

Number of available advertising instances.

array{string} SupportedIncludes

List of supported system includes.

Possible values: "tx-power"
"appearance"
"local-name"

array{string} SupportedSecondaryChannels [Experimental]

List of supported Secondary channels. Secondary
channels can be used to advertise with the
corresponding PHY.

Possible values: "1M"
"2M"
"Coded"

dict SupportedCapabilities [Experimental]

Enumerates Advertising-related controller capabilities
useful to the client.

Possible Values:

byte MaxAdvLen

Max advertising data length

byte MaxScnRspLen

Max advertising scan response length

int16 MinTxPower

Min advertising tx power (dBm)

int16 MaxTxPower

Max advertising tx power (dBm)

array{string} SupportedFeatures [readonly,optional,Experimental]

List of supported platform features. If no features
are available on the platform, the SupportedFeatures
array will be empty.

Possible values: "CanSetTxPower"

Indicates whether platform can
specify tx power on each
advertising instance.

"HardwareOffload"

Indicates whether multiple
advertising will be offloaded
to the controller.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    RegisterAdvertisement(org.freedesktop.dbus.DBusPath _advertisement, Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Registers an advertisement object to be sent over the LE
    Advertising channel.
    void
    UnregisterAdvertisement(org.freedesktop.dbus.DBusPath _advertisement)
    From bluez documentation:

    This unregisters an advertisement that has been
    previously registered.

    Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface

    getObjectPath, isRemote
  • Method Details

    • RegisterAdvertisement

      void RegisterAdvertisement(org.freedesktop.dbus.DBusPath _advertisement, Map<String,org.freedesktop.dbus.types.Variant<?>> _options) throws BluezInvalidArgumentsException, BluezAlreadyExistsException, BluezInvalidLengthException, BluezNotPermittedException
      From bluez documentation:

      Registers an advertisement object to be sent over the LE
      Advertising channel. The service must be exported
      under interface LEAdvertisement1.

      InvalidArguments error indicates that the object has
      invalid or conflicting properties.

      InvalidLength error indicates that the data
      provided generates a data packet which is too long.

      The properties of this object are parsed when it is
      registered, and any changes are ignored.

      If the same object is registered twice it will result in
      an AlreadyExists error.

      If the maximum number of advertisement instances is
      reached it will result in NotPermitted error.

      Parameters:
      _advertisement - advertisement
      _options - options
      Throws:
      BluezInvalidArgumentsException - when argument is invalid
      BluezAlreadyExistsException - when item already exists
      BluezInvalidLengthException - on BluezInvalidLengthException
      BluezNotPermittedException - on BluezNotPermittedException
    • UnregisterAdvertisement

      void UnregisterAdvertisement(org.freedesktop.dbus.DBusPath _advertisement) throws BluezInvalidArgumentsException, BluezDoesNotExistException
      From bluez documentation:

      This unregisters an advertisement that has been
      previously registered. The object path parameter must
      match the same value that has been used on registration.

      Parameters:
      _advertisement - advertisement
      Throws:
      BluezInvalidArgumentsException - when argument is invalid
      BluezDoesNotExistException - when item does not exist