MeshElement

data class MeshElement(val index: Int, val unicastAddress: MeshAddress.UnicastAddress, val location: ElementLocation = ElementLocation.UNKNOWN, val models: List<MeshModelId> = emptyList())

An addressable entity within a MeshNode.

Each element has a unique unicast address derived from the node's primary address plus the element index. Elements host models that define the element's behavior.

Constructors

Link copied to clipboard
constructor(index: Int, unicastAddress: MeshAddress.UnicastAddress, location: ElementLocation = ElementLocation.UNKNOWN, models: List<MeshModelId> = emptyList())

Properties

Link copied to clipboard
val index: Int

Zero-based index of this element within its parent node.

Link copied to clipboard

Physical or logical location descriptor.

Link copied to clipboard

Models hosted by this element.

Link copied to clipboard

The unicast address of this element (primaryAddress + index).