Class DataManagerClient

Implements

Constructors

Properties

Methods

Constructors

Properties

callOptions: CallOptions = ...
name: string

The name of the resource.

Methods

  • Do a command on the data manager.

    Parameters

    • command: Struct

      The command to do.

    • callOptions: CallOptions = ...

      Call options for the command.

    Returns Promise<JsonValue>

    const dataManager = new VIAM.DataManagerClient(
    machine,
    'my_data_manager'
    );
    await dataManager.doCommand(new Struct({ cmd: 'test', data1: 500 }));

    For more information, see Data Manager API.

  • Sync data stored on the machine to the cloud.

    Parameters

    • extra: {} = {}

      Extra arguments to pass to the sync request.

    • callOptions: CallOptions = ...

      Call options for the sync request.

    Returns Promise<void>

    const dataManager = new VIAM.DataManagerClient(
    machine,
    'my_data_manager'
    );
    await dataManager.sync();

    For more information, see Data Manager API.

MMNEPVFCICPMFPCPTTAAATR