Class PowerSensorClient

A gRPC-web client for the PowerSensor component.

Implements

Constructors

Properties

client: PowerSensorServiceClient
name: string
options: Options

Accessors

  • get powersensorService(): PowerSensorServiceClient
  • Returns PowerSensorServiceClient

Methods

  • Get Current in amps and a boolean that returns true if AC

    Parameters

    • extra: {} = {}

      Returns Promise<readonly [number, boolean]>

    • Get Power in watts

      Parameters

      • extra: {} = {}

        Returns Promise<number>

      • Return the readings of a sensor.

        Parameters

        • extra: {} = {}

          Returns Promise<Record<string, unknown>>

        • Get Voltage in volts and a boolean that returns true if AC

          Parameters

          • extra: {} = {}

            Returns Promise<readonly [number, boolean]>

          Generated using TypeDoc