class
Matter::Network::ThreadCredentials
- Matter::Network::ThreadCredentials
- Reference
- Object
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.crConstructors
Instance Method Summary
-
#channel : UInt8 | Nil
Channel (optional)
-
#channel=(channel : UInt8 | Nil)
Channel (optional)
-
#extended_pan_id : Bytes
Extended PAN ID (8 bytes) - uniquely identifies the Thread network
-
#network_id : Bytes
Get the network ID (Extended PAN ID)
-
#network_key : Bytes | Nil
Network master key (16 bytes, optional)
-
#network_key=(network_key : Bytes | Nil)
Network master key (16 bytes, optional)
-
#network_name : String | Nil
Network name (optional, human-readable)
-
#network_name=(network_name : String | Nil)
Network name (optional, human-readable)
-
#operational_dataset : Bytes
The complete operational dataset (TLV-encoded)
-
#pan_id : UInt16 | Nil
PAN ID (2 bytes, optional)
-
#pan_id=(pan_id : UInt16 | Nil)
PAN ID (2 bytes, optional)
-
#raw : Bytes
Get raw operational dataset
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Instance Method Detail
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>