class

Matter::Network::ThreadCredentials

Inherits Reference < Object

Thread Network Credentials

Represents a Thread Operational Dataset with parsed fields. The operational dataset contains all parameters needed to join a Thread network.

Constructors

new(operational_dataset : Bytes)
Source

Instance methods

channel

Channel (optional)

Source
channel=(channel : UInt8 | Nil)

Channel (optional)

Source
extended_pan_id

Extended PAN ID (8 bytes) - uniquely identifies the Thread network

Source
network_id

Get the network ID (Extended PAN ID)

Source
network_key

Network master key (16 bytes, optional)

Source
network_key=(network_key : Bytes | Nil)

Network master key (16 bytes, optional)

Source
network_name

Network name (optional, human-readable)

Source
network_name=(network_name : String | Nil)

Network name (optional, human-readable)

Source
operational_dataset

The complete operational dataset (TLV-encoded)

Source
pan_id

PAN ID (2 bytes, optional)

Source
pan_id=(pan_id : UInt16 | Nil)

PAN ID (2 bytes, optional)

Source
raw

Get raw operational dataset

Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source