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)
SourceInstance methods
channel=(channel : UInt8 | Nil)
Sourceextended_pan_id
Extended PAN ID (8 bytes) - uniquely identifies the Thread network
Sourcenetwork_id
Get the network ID (Extended PAN ID)
Sourcenetwork_key
Network master key (16 bytes, optional)
Sourcenetwork_key=(network_key : Bytes | Nil)
Network master key (16 bytes, optional)
Sourcenetwork_name
Network name (optional, human-readable)
Sourcenetwork_name=(network_name : String | Nil)
Network name (optional, human-readable)
Sourceoperational_dataset
The complete operational dataset (TLV-encoded)
Sourcepan_id
PAN ID (2 bytes, optional)
Sourcepan_id=(pan_id : UInt16 | Nil)
PAN ID (2 bytes, optional)
Sourceraw
Get raw operational dataset
Sourceto_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