Manages the transport layer for ESP node communication, allowing configuration of local or cloud-based transport modes.

This class abstracts the underlying transport mechanism and provides methods for setting and retrieving node parameters.

Constructors

Methods

Constructors

Methods

  • Retrieves parameters from the node using the configured transport mechanism.

    Parameters

    • payload: Record<string, any>

      A record containing the data required to retrieve node parameters.

    • OptionalnodeRef: ESPRMNode

      Optional reference to the ESPRMNode instance for custom transport.

    Returns Promise<Record<string, any>>

    A promise that resolves to a record of the node parameters.

  • Sets a parameter on the node using the configured transport mechanism.

    Parameters

    • payload: Record<string, any>

      A record containing the parameter data to set on the node.

    • OptionalnodeRef: ESPRMNode

      Optional reference to the ESPRMNode instance for custom transport.

    Returns Promise<ESPAPIResponse>

    A promise that resolves to the response of the set operation.