@espressif/rainmaker-base-cdf
    Preparing search index...

    Class ESPRMDevice

    Represents a device with its associated attributes and parameters. Implements the ESPRMDeviceInterface.

    Implements

    Index

    Constructors

    Properties

    attributes?: ESPRMAttribute[]

    Optional attributes associated with the device.

    displayName: string

    The display name of the device.

    name: string

    The name of the device.

    nodeRef: WeakRef<ESPRMNode>

    Referance to ESPRMNode.

    params?: ESPRMDeviceParam[]

    Optional parameters associated with the device.

    primaryParam?: ESPRMDeviceParam

    The primary parameter of the device.

    type: string

    The type of the device.

    Methods

    • Fetches the parameters for the current device.

      Returns Promise<ESPRMDeviceParam[]>

      A promise that resolves to an array of updated device parameters.

    • Gets the primary parameter for the current device.

      The primary device parameter if it exists, undefined otherwise.

      Returns undefined | ESPRMDeviceParam