Node

@Serializable
data class Node

The node represents a configured state of a mesh node.

Constructors

Link copied to clipboard
constructor(uuid: UUID, deviceKey: ByteArray, unicastAddress: UnicastAddress, elementCount: Int, assignedNetworkKey: NetworkKey, security: Security)

Convenience constructor to initialize a node from an unprovisioned device.

Properties

Link copied to clipboard

List of addresses used by this node.

Link copied to clipboard

Array of NodeKey that includes information about the ApplicationKeys known to this node.

Link copied to clipboard

List of application keys known to this node.

Link copied to clipboard

16-bit Company Identifier (CID) assigned by the Bluetooth SIG. The value of this property is obtained from node composition data.

Link copied to clipboard

True if the Mesh Manager determines that this node’s configuration process is completed; otherwise, the property’s value is set to false.

Link copied to clipboard

0 to 127 that represents the default Time to Live (TTL) value used when sending messages.

Link copied to clipboard
@Serializable(with = KeySerializer::class)
val deviceKey: ByteArray?

128-bit device key. When importing a partially exported network configuration, the device key might not be present in the Mesh Network Configuration Database.

Link copied to clipboard

Array of elements contained in the Node.

Link copied to clipboard

Number of elements belonging to this node.

Link copied to clipboard

True if the node is in the process of being deleted and is excluded from the new network key distribution during the Key Refresh procedure; otherwise, it is set to “false”.

Link copied to clipboard

Features supported by the node.

Link copied to clipboard

Address of the last element in the node.

Link copied to clipboard

Human-readable name that can identify this node within the mesh network.

Link copied to clipboard

Array of NodeKey that includes information about the network keys known to this node.

Link copied to clipboard

List of network keys known to this node.

Link copied to clipboard

NetworkTransmit represents the parameters of the transmissions of network layer messages originating from a mesh node.

Link copied to clipboard
Link copied to clipboard

Address of the primary element in the node.

Link copied to clipboard

16-bit, vendor-assigned Product Identifier (PID). The value of this property is obtained from node composition data.

Link copied to clipboard

RelayRetransmit represents the parameters of the retransmissions of network layer messages relayed by a mesh node.

Link copied to clipboard

16-bit value indicating the minimum number of Replay Protection List (RPL) entries for this node. The value of this property is obtained from node composition data. RPL implementation handles a multi-segment message transaction which is under a replay attack. The sequence number of the last segment that has been received for this message is stored for that peer node in the replay protection list.

Link copied to clipboard

Represents whether the node is configured to send Secure Network beacons.

Link copied to clipboard

Represents the level of Security for the subnet on which the node has been originally provisioned.

Link copied to clipboard

Address range used by this node.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val uuid: UUID

Unique 128-bit UUID of the node.

Link copied to clipboard

16-bit, vendor-assigned product Version Identifier (VID). The value of this property is obtained from node composition data

Functions

Link copied to clipboard

Checks if an element in the node has a Unicast Address from the given range.

Link copied to clipboard

Checks if an element in the node uses this address.

Link copied to clipboard
fun element(address: UShort): Element?

Returns the element with the given address.

fun element(address: MeshAddress): Element?

Returns the element with the given address

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun knows(applicationKey: ApplicationKey): Boolean

Checks if the given Application Key known by the node.

fun knows(networkKey: NetworkKey): Boolean

Checks if the given Network Key known by the node.

Link copied to clipboard

Checks if the given Application Key index known by the node.

Link copied to clipboard

Checks if the given Network Key index known by the node.

Link copied to clipboard
fun overlaps(address: UnicastAddress, count: Int): Boolean

Checks if the given addresses used by the specified number of elements overlaps with the address range used by the node.