Viam SDK
    Preparing search index...

    Interface ProvisioningClient

    interface ProvisioningClient {
        getNetworkList(): Promise<NetworkInfo[]>;
        getSmartMachineStatus(): Promise<GetSmartMachineStatusResponse>;
        setNetworkCredentials(
            type: string,
            ssid: string,
            psk: string,
        ): Promise<void>;
        setSmartMachineCredentials(cloud?: CloudConfig): Promise<void>;
    }
    Index

    Methods

    • Get the networks that are visible to the Smart Machine.

      Returns Promise<NetworkInfo[]>

      A list of networks

    • Set the network credentials of the Smart Machine, so it can connect to the internet.

      Parameters

      • type: string

        The type of network

      • ssid: string

        The SSID of the network

      • psk: string

        The network's passkey

      Returns Promise<void>

    • Set the Viam credentials of the smart machine credentials, so it connect to the Cloud.

      Parameters

      • Optionalcloud: CloudConfig

        The configuration of the Cloud

      Returns Promise<void>