@qualithm/device - v0.12.2
    Preparing search index...

    Function homeNetworkKeyfile

    • Build the NetworkManager keyfile for a home network. Pure, so the exact contents are what the tests assert.

      The SSID is written as a byte list, which needs no escaping and carries any UTF-8 name. An empty passphrase makes an open network.

      Parameters

      • network: HomeNetwork

        the SSID and passphrase from the claim

      • ifname: string = "wlan0"

        the Wi-Fi interface

      Returns string

      the keyfile contents

      ProvisioningError when the SSID is empty or longer than 32 bytes, or the passphrase isn't 8–63 printable characters or 64 hex digits