Interface Sensor

Represents a physical sensing device that can provide measurement readings.

interface Sensor {
    doCommand: ((command) => Promise<StructType>);
    getReadings(extra?): Promise<Record<string, unknown>>;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

doCommand: ((command) => Promise<StructType>)

Send/Receive arbitrary commands to the resource.

Type declaration

Methods

  • Return the readings of a sensor.

    Parameters

    Returns Promise<Record<string, unknown>>

Generated using TypeDoc