class Matter::Network::ThreadCredentials

Overview

Thread Network Credentials

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

Defined in:

matter/network/credentials.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(operational_dataset : Bytes) #

[View source]

Instance Method Detail

def channel : UInt8 | Nil #

Channel (optional)


[View source]
def channel=(channel : UInt8 | Nil) #

Channel (optional)


[View source]
def extended_pan_id : Bytes #

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


[View source]
def network_id : Bytes #

Get the network ID (Extended PAN ID)


[View source]
def network_key : Bytes | Nil #

Network master key (16 bytes, optional)


[View source]
def network_key=(network_key : Bytes | Nil) #

Network master key (16 bytes, optional)


[View source]
def network_name : String | Nil #

Network name (optional, human-readable)


[View source]
def network_name=(network_name : String | Nil) #

Network name (optional, human-readable)


[View source]
def operational_dataset : Bytes #

The complete operational dataset (TLV-encoded)


[View source]
def pan_id : UInt16 | Nil #

PAN ID (2 bytes, optional)


[View source]
def pan_id=(pan_id : UInt16 | Nil) #

PAN ID (2 bytes, optional)


[View source]
def raw : Bytes #

Get raw operational dataset


[View source]
def to_s(io : IO) #
Description copied from class Reference

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>

[View source]