class
Matter::Network::WiFiCredentials
- Matter::Network::WiFiCredentials
- Reference
- Object
Overview
WiFi Credentials
Represents parsed WiFi credentials in a structured format. The backend can use this information to configure the network interface without needing to parse raw bytes.
Defined in:
matter/network/credentials.crConstructors
Instance Method Summary
-
#credentials : Bytes
The credential data (passphrase or PSK)
-
#is_psk : Bool
Whether this is a raw PSK (true) or passphrase (false)
-
#passphrase : String
Get credentials as a string (for passphrases)
-
#psk_hex : String
Get credentials as hex string (for PSKs)
-
#raw : Bytes
Get raw credential bytes
-
#security_type : WiFiSecurityType
Inferred security type based on credential length and format
-
#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
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>