class

Matter::Network::WiFiCredentials

Inherits Reference < Object

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.

Constructors

new(credentials : Bytes)
Source

Instance methods

credentials

The credential data (passphrase or PSK)

Source
is_psk?

Whether this is a raw PSK (true) or passphrase (false)

Source
passphrase

Get credentials as a string (for passphrases)

Source
psk_hex

Get credentials as hex string (for PSKs)

Source
raw

Get raw credential bytes

Source
security_type

Inferred security type based on credential length and format

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