A generic handler for delegated transport operations.

This method provides a mechanism to perform transport operations, such as retrieving or setting device parameters, using an instance of ESPTransportManager. The specific operation to be performed is provided as a callback function.

Error if the node is offline or if all transport methods fail.

  • Type Parameters

    • T

      The type of the result returned by the transport operation.

    Parameters

    • this: ESPRMNode
    • operation: (manager: ESPTransportManager) => Promise<T>

      A function that performs the transport operation. It receives an instance of ESPTransportManager and returns a promise resolving to the result of the operation.

    Returns Promise<T>

    A promise that resolves to the result of the transport operation.