Class ProvisioningClient

Constructors

Properties

client: PromiseClient<{
    methods: {
        getNetworkList: {
            I: typeof GetNetworkListRequest;
            O: typeof GetNetworkListResponse;
            kind: Unary;
            name: "GetNetworkList";
        };
        getSmartMachineStatus: {
            I: typeof GetSmartMachineStatusRequest;
            O: typeof GetSmartMachineStatusResponse;
            kind: Unary;
            name: "GetSmartMachineStatus";
        };
        setNetworkCredentials: {
            I: typeof SetNetworkCredentialsRequest;
            O: typeof SetNetworkCredentialsResponse;
            kind: Unary;
            name: "SetNetworkCredentials";
        };
        setSmartMachineCredentials: {
            I: typeof SetSmartMachineCredentialsRequest;
            O: typeof SetSmartMachineCredentialsResponse;
            kind: Unary;
            name: "SetSmartMachineCredentials";
        };
    };
    typeName: "viam.provisioning.v1.ProvisioningService";
}>

Type declaration

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

    • Optional cloud: CloudConfig

      The configuration of the Cloud

    Returns Promise<void>

Generated using TypeDoc