Package org.bluez.mesh
Interface Management1
- All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface
public interface Management1
extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2023-02-20.
Based on bluez Documentation: mesh-api.txt.
Service: org.bluez.mesh
Interface: org.bluez.mesh.Management1
Object path:
/org/bluez/mesh/node<uuid>
where <uuid> is the Device UUID passed to Join(),
CreateNetwork() or Import()
Based on bluez Documentation: mesh-api.txt.
Service: org.bluez.mesh
Interface: org.bluez.mesh.Management1
Object path:
/org/bluez/mesh/node<uuid>
where <uuid> is the Device UUID passed to Join(),
CreateNetwork() or Import()
-
Method Summary
Modifier and TypeMethodDescriptionvoidFrom bluez documentation:
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to add the
unprovisioned device specified by uuid, to the Network.
The uuid parameter is a 16-byte array that contains Device UUID
of the unprovisioned device to be added to the network.
The options parameter is a dictionary that may contain
additional configuration info (currently an empty placeholder
for forward compatibility).
voidCreateAppKey(org.freedesktop.dbus.types.UInt16 _netIndex, org.freedesktop.dbus.types.UInt16 _appIndex) From bluez documentation:
This method is used by the application to generate and add a new
application key.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to bind the application key to.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to add.
This call affects the local bluetooth-meshd key database only.
voidCreateSubnet(org.freedesktop.dbus.types.UInt16 _netIndex) From bluez documentation:
This method is used by the application to generate and add a new
network subnet key.
The net_index parameter is a 12-bit value (0x001-0xFFF)
specifying which net key to add.
This call affects the local bluetooth-meshd key database only.
voidDeleteAppKey(org.freedesktop.dbus.types.UInt16 _appIndex) From bluez documentation:
This method is used by the application to delete an application
key.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to delete.
This call affects the local bluetooth-meshd key database only.
voidDeleteRemoteNode(org.freedesktop.dbus.types.UInt16 _primary, byte _count) From bluez documentation:
This method is used by the application to delete a remote node
from the local device key database.
The primary parameter specifies the unicast address of the
the node being deleted.
The count parameter specifies the number of elements that were
assigned to the remote node.
This call affects the local bluetooth-meshd key database only.
It is an error to call this with address range overlapping
with local element addresses.
voidDeleteSubnet(org.freedesktop.dbus.types.UInt16 _netIndex) From bluez documentation:
This method is used by the application that to delete a subnet.
The net_index parameter is a 12-bit value (0x001-0xFFF)
specifying which net key to delete.From bluez documentation:
This method is used by the application to export information
about network keys, application keys and device keys present
in the local key database.
dict
A dictionary that contains information for the keys
stored in the keyring with the following keys defined:
NetKeys:
array{struct} net_keys:
uint16 index
Subnet index
array{byte}[16] key
dict:
A dictionary that contains optional
key info with the following keys
defined:
uint8 Phase
Key Refresh phase of the subnet
array{byte}[16] OldKey
array{struct} AppKeys:
uint16 index
Application key index
array{byte}[16] key
dict:
A dictionary of optional
key info with the
following keys defined:
array{byte}[16] OldKey
DevKeys:
array{struct} dev_keys:
Device Key information for known remote
nodes in the configured Mesh network
uint16 unicast
Unicast address of the node's primary
element
array{byte}[16] key
voidImportAppKey(org.freedesktop.dbus.types.UInt16 _netIndex, org.freedesktop.dbus.types.UInt16 _appIndex, byte[] _appKey) From bluez documentation:
This method is used by the application to add an application
key, that was originally generated by a remote Config Client.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to bind the application key to.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to import.
The app_key parameter is the 16-byte value of the key being
imported.
This call affects the local bluetooth-meshd key database only.
voidImportRemoteNode(org.freedesktop.dbus.types.UInt16 _primary, byte _count, byte[] _deviceKey) From bluez documentation:
This method is used by the application to import a remote node
that has been provisioned by an external process.
The primary parameter specifies the unicast address of the
the node being imported.
The count parameter specifies the number of elements that are
assigned to this remote node.
The device_key parameter is the access layer key that will be
will used to decrypt privledged messages from this remote node.
This call affects the local bluetooth-meshd key database only.
It is an error to call this with address range overlapping
with local element addresses.
voidImportSubnet(org.freedesktop.dbus.types.UInt16 _netIndex, byte[] _netKey) From bluez documentation:
This method is used by the application to add a network subnet
key, that was originally generated by a remote Config Client.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to add.
The net_key parameter is the 16-byte value of the net key being
imported.
This call affects the local bluetooth-meshd key database only.
voidSetKeyPhase(org.freedesktop.dbus.types.UInt16 _netIndex, byte _phase) From bluez documentation:
This method is used to set the flooding key update phase of the
given subnet.voidUnprovisionedScan(Map<String, org.freedesktop.dbus.types.Variant<?>> _options) From bluez documentation:
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to start listening
(scanning) for unprovisioned devices in the area.
The options parameter is a dictionary with the following keys
defined:
uint16 Seconds
Specifies number of seconds for scanning to be active.
If set to 0 or if this key is not present, then the
scanning will continue until UnprovisionedScanCancel()
or AddNode() methods are called.
Each time a unique unprovisioned beacon is heard, the
ScanResult() method on the app will be called with the result.
voidFrom bluez documentation:
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to stop listening
(scanning) for unprovisioned devices in the area.
voidUpdateAppKey(org.freedesktop.dbus.types.UInt16 _appIndex) From bluez documentation:
This method is used by the application to generate a new
application key.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to update.voidUpdateSubnet(org.freedesktop.dbus.types.UInt16 _netIndex) From bluez documentation:
This method is used by the application to generate a new network
subnet key, and set it's key refresh state to Phase 1.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to update.Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface
getObjectPath, isRemote
-
Method Details
-
UnprovisionedScan
void UnprovisionedScan(Map<String, org.freedesktop.dbus.types.Variant<?>> _options) throws BluezMeshInvalidArgumentsException, BluezMeshNotAuthorizedException, BluezMeshBusyExceptionFrom bluez documentation:
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to start listening
(scanning) for unprovisioned devices in the area.
The options parameter is a dictionary with the following keys
defined:
uint16 Seconds
Specifies number of seconds for scanning to be active.
If set to 0 or if this key is not present, then the
scanning will continue until UnprovisionedScanCancel()
or AddNode() methods are called.
Each time a unique unprovisioned beacon is heard, the
ScanResult() method on the app will be called with the result.
- Parameters:
_options- options- Throws:
BluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshNotAuthorizedException- when not authorizedBluezMeshBusyException- when already busy
-
UnprovisionedScanCancel
void UnprovisionedScanCancel() throws BluezMeshInvalidArgumentsException, BluezMeshNotAuthorizedExceptionFrom bluez documentation:
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to stop listening
(scanning) for unprovisioned devices in the area.
- Throws:
BluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshNotAuthorizedException- when not authorized
-
AddNode
void AddNode(byte[] _uuid, Map<String, org.freedesktop.dbus.types.Variant<?>> _options) throws BluezMeshInvalidArgumentsException, BluezMeshNotAuthorizedExceptionFrom bluez documentation:
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to add the
unprovisioned device specified by uuid, to the Network.
The uuid parameter is a 16-byte array that contains Device UUID
of the unprovisioned device to be added to the network.
The options parameter is a dictionary that may contain
additional configuration info (currently an empty placeholder
for forward compatibility).
- Parameters:
_uuid- uuid_options- options- Throws:
BluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshNotAuthorizedException- when not authorized
-
CreateSubnet
void CreateSubnet(org.freedesktop.dbus.types.UInt16 _netIndex) throws BluezMeshInvalidArgumentsException, BluezMeshNotAuthorizedException From bluez documentation:
This method is used by the application to generate and add a new
network subnet key.
The net_index parameter is a 12-bit value (0x001-0xFFF)
specifying which net key to add.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_netIndex- net_index- Throws:
BluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshNotAuthorizedException- when not authorized
-
ImportSubnet
void ImportSubnet(org.freedesktop.dbus.types.UInt16 _netIndex, byte[] _netKey) throws BluezMeshInvalidArgumentsException, BluezMeshFailedException, BluezMeshAlreadyExistsException From bluez documentation:
This method is used by the application to add a network subnet
key, that was originally generated by a remote Config Client.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to add.
The net_key parameter is the 16-byte value of the net key being
imported.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_netIndex- net_index_netKey- net_key- Throws:
BluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshFailedException- when operation failedBluezMeshAlreadyExistsException- when already exists
-
UpdateSubnet
void UpdateSubnet(org.freedesktop.dbus.types.UInt16 _netIndex) throws BluezMeshFailedException, BluezMeshInvalidArgumentsException, BluezMeshDoesNotExistException, BluezMeshBusyException From bluez documentation:
This method is used by the application to generate a new network
subnet key, and set it's key refresh state to Phase 1.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to update. Note that the subnet must
exist prior to updating.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_netIndex- net_index- Throws:
BluezMeshFailedException- when operation failedBluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshDoesNotExistException- when not existingBluezMeshBusyException- when already busy
-
DeleteSubnet
void DeleteSubnet(org.freedesktop.dbus.types.UInt16 _netIndex) throws BluezMeshInvalidArgumentsException From bluez documentation:
This method is used by the application that to delete a subnet.
The net_index parameter is a 12-bit value (0x001-0xFFF)
specifying which net key to delete. The primary net key (0x000)
may not be deleted.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_netIndex- net_index- Throws:
BluezMeshInvalidArgumentsException- when invalid argument given
-
SetKeyPhase
void SetKeyPhase(org.freedesktop.dbus.types.UInt16 _netIndex, byte _phase) throws BluezMeshFailedException, BluezMeshInvalidArgumentsException, BluezMeshDoesNotExistException From bluez documentation:
This method is used to set the flooding key update phase of the
given subnet. When finalizing the procedure, it is important
to CompleteAppKeyUpdate() on all app keys that have been
updated during the procedure prior to setting phase 3.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which subnet phase to set.
The phase parameter is used to cycle the local key database
through the phases as defined by the Mesh Profile Specification.
Allowed values:
0 - Cancel Key Refresh (May only be called from Phase 1,
and should never be called once the new key has
started propagating)
1 - Invalid Argument (see NetKeyUpdate method)
2 - Go to Phase 2 (May only be called from Phase 1)
3 - Complete Key Refresh procedure (May only be called
from Phase 2)
This call affects the local bluetooth-meshd key database only.
It is the responsibility of the application to maintain the key
refresh phases per the Mesh Profile Specification.
- Parameters:
_netIndex- net_index_phase- phase- Throws:
BluezMeshFailedException- when operation failedBluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshDoesNotExistException- when not existing
-
CreateAppKey
void CreateAppKey(org.freedesktop.dbus.types.UInt16 _netIndex, org.freedesktop.dbus.types.UInt16 _appIndex) throws BluezMeshFailedException, BluezMeshInvalidArgumentsException, BluezMeshAlreadyExistsException, BluezMeshDoesNotExistException From bluez documentation:
This method is used by the application to generate and add a new
application key.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to bind the application key to.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to add.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_netIndex- net_index_appIndex- app_index- Throws:
BluezMeshFailedException- when operation failedBluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshAlreadyExistsException- when already existingBluezMeshDoesNotExistException- when not existing
-
ImportAppKey
void ImportAppKey(org.freedesktop.dbus.types.UInt16 _netIndex, org.freedesktop.dbus.types.UInt16 _appIndex, byte[] _appKey) throws BluezMeshFailedException, BluezMeshInvalidArgumentsException, BluezMeshAlreadyExistsException, BluezMeshDoesNotExistException From bluez documentation:
This method is used by the application to add an application
key, that was originally generated by a remote Config Client.
The net_index parameter is a 12-bit value (0x000-0xFFF)
specifying which net key to bind the application key to.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to import.
The app_key parameter is the 16-byte value of the key being
imported.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_netIndex- net_index_appIndex- app_index_appKey- app_key- Throws:
BluezMeshFailedException- when operation failedBluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshAlreadyExistsException- when already existingBluezMeshDoesNotExistException- when not existing
-
UpdateAppKey
void UpdateAppKey(org.freedesktop.dbus.types.UInt16 _appIndex) throws BluezMeshFailedException, BluezMeshInvalidArgumentsException, BluezMeshDoesNotExistException, BluezMeshInProgressException From bluez documentation:
This method is used by the application to generate a new
application key.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to update. Note that the subnet that
the key is bound to must exist and be in Phase 1.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_appIndex- app_index- Throws:
BluezMeshFailedException- when operation failedBluezMeshInvalidArgumentsException- when invalid argument givenBluezMeshDoesNotExistException- when not existingBluezMeshInProgressException- when already in progress
-
DeleteAppKey
void DeleteAppKey(org.freedesktop.dbus.types.UInt16 _appIndex) throws BluezMeshInvalidArgumentsException From bluez documentation:
This method is used by the application to delete an application
key.
The app_index parameter is a 12-bit value (0x000-0xFFF)
specifying which app key to delete.
This call affects the local bluetooth-meshd key database only.
- Parameters:
_appIndex- app_index- Throws:
BluezMeshInvalidArgumentsException- when invalid argument given
-
ImportRemoteNode
void ImportRemoteNode(org.freedesktop.dbus.types.UInt16 _primary, byte _count, byte[] _deviceKey) throws BluezMeshFailedException, BluezMeshInvalidArgumentsException From bluez documentation:
This method is used by the application to import a remote node
that has been provisioned by an external process.
The primary parameter specifies the unicast address of the
the node being imported.
The count parameter specifies the number of elements that are
assigned to this remote node.
The device_key parameter is the access layer key that will be
will used to decrypt privledged messages from this remote node.
This call affects the local bluetooth-meshd key database only.
It is an error to call this with address range overlapping
with local element addresses.
- Parameters:
_primary- primary_count- count_deviceKey- device_key- Throws:
BluezMeshFailedException- when operation failedBluezMeshInvalidArgumentsException- when invalid argument given
-
DeleteRemoteNode
void DeleteRemoteNode(org.freedesktop.dbus.types.UInt16 _primary, byte _count) throws BluezMeshInvalidArgumentsException From bluez documentation:
This method is used by the application to delete a remote node
from the local device key database.
The primary parameter specifies the unicast address of the
the node being deleted.
The count parameter specifies the number of elements that were
assigned to the remote node.
This call affects the local bluetooth-meshd key database only.
It is an error to call this with address range overlapping
with local element addresses.
- Parameters:
_primary- primary_count- count- Throws:
BluezMeshInvalidArgumentsException- when invalid argument given
-
ExportKeys
From bluez documentation:
This method is used by the application to export information
about network keys, application keys and device keys present
in the local key database.
dict
A dictionary that contains information for the keys
stored in the keyring with the following keys defined:
NetKeys:
array{struct} net_keys:
uint16 index
Subnet index
array{byte}[16] key
dict:
A dictionary that contains optional
key info with the following keys
defined:
uint8 Phase
Key Refresh phase of the subnet
array{byte}[16] OldKey
array{struct} AppKeys:
uint16 index
Application key index
array{byte}[16] key
dict:
A dictionary of optional
key info with the
following keys defined:
array{byte}[16] OldKey
DevKeys:
array{struct} dev_keys:
Device Key information for known remote
nodes in the configured Mesh network
uint16 unicast
Unicast address of the node's primary
element
array{byte}[16] key
- Returns:
- Map<String, Variant<?>> - maybe null
-