Properties

config: GeccoConfig

The device config.

device: string
lastData: undefined | GeccoSensorData

Returns the last data which was generated by the sensor.

manufacturer: string
name: string

The name of the device.

The device state.

type: string

The type of the device.

Methods

  • Parameters

    • actionName: string

    Returns Promise<void>

  • Internal

    Parameters

    • wasSessionReset: boolean

    Returns Promise<void>

  • Returns a promise which is fulfilled when the device is started.

    Returns Promise<any>

  • Starts the device when needed and returns a promise which is fulfilled when the device is started.

    Returns Promise<any>

  • Stops the device.

    Returns void

Events

  • Registers a callback which will be triggered when the device encounters an error.

    Parameters

    • callback: ((error: Error) => void)

      The callback which will be called once the device encountered an error.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns EventSubscription

Generated using TypeDoc