Package org.bluez
Interface LEAdvertisingManager1
-
- All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface
public interface LEAdvertisingManager1 extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2020-06-18.
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"
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
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 invalidBluezAlreadyExistsException
- when item already existsBluezInvalidLengthException
- on BluezInvalidLengthExceptionBluezNotPermittedException
- 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 invalidBluezDoesNotExistException
- when item does not exist
-
-