struct

Matter::Controller::State

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new(fabric : FabricInfo | Nil = nil, nodes : Hash(UInt64, NodeInfo) = {} of UInt64 => NodeInfo, commissioner_node_id : UInt64 = 0_u64, unsecured_message_counter : UInt32 = 0_u32)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

commissioner_node_id

Commissioner node id used for unsecured message source_node_id and as the controller node id when creating a new fabric.

Source
commissioner_node_id=(commissioner_node_id : UInt64)

Commissioner node id used for unsecured message source_node_id and as the controller node id when creating a new fabric.

Source
fabric
Source
fabric=(fabric : FabricInfo | Nil)
Source
nodes
Source
nodes=(nodes : Hash(UInt64, NodeInfo))
Source
unsecured_message_counter

Monotonic counter for unsecured (session_id=0) messages. This must not go backwards across process restarts or peers may treat requests as stale.

Source
unsecured_message_counter=(unsecured_message_counter : UInt32)

Monotonic counter for unsecured (session_id=0) messages. This must not go backwards across process restarts or peers may treat requests as stale.

Source