MeshNetworkState

data class MeshNetworkState(val ivIndex: IvIndex, val unicastAddress: MeshAddress.UnicastAddress, val networkKeys: List<NetworkKey>, val applicationKeys: List<ApplicationKey>, val nodes: List<PersistedNodeState>, val groupAddresses: List<MeshAddress.GroupAddress> = emptyList(), val lastUpdatedTimestamp: Long = 0)

Serializable snapshot of the complete mesh network state.

Contains all data needed to restore the network after an app restart: keys, IV Index, unicast address, and per-node state including the critical sequence numbers.

Constructors

Link copied to clipboard
constructor(ivIndex: IvIndex, unicastAddress: MeshAddress.UnicastAddress, networkKeys: List<NetworkKey>, applicationKeys: List<ApplicationKey>, nodes: List<PersistedNodeState>, groupAddresses: List<MeshAddress.GroupAddress> = emptyList(), lastUpdatedTimestamp: Long = 0)

Properties

Link copied to clipboard

All application keys known to this node.

Link copied to clipboard

All known group addresses and their labels.

Link copied to clipboard

Current IV Index value.

Link copied to clipboard

Metadata for debugging.

Link copied to clipboard

All network keys known to this node.

Link copied to clipboard

Per-node persisted state.

Link copied to clipboard

Our unicast address on the mesh network.