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

    Interface ESPCDFLocalControlAdapterInterface

    Local control adapter interface for node communication over LAN.

    interface ESPCDFLocalControlAdapterInterface {
        connect(
            nodeId: string,
            baseUrl: string,
            securtiyType: number,
            pop?: string,
            username?: string,
        ): Promise<Record<string, any>>;
        isConnected(nodeId: string): Promise<boolean>;
        sendData(nodeId: string, path: string, data: string): Promise<string>;
    }
    Index

    Methods

    • Connects to the node with local control parameters.

      Parameters

      • nodeId: string
      • baseUrl: string
      • securtiyType: number
      • Optionalpop: string
      • Optionalusername: string

      Returns Promise<Record<string, any>>

    • Checks if the node is connected.

      Parameters

      • nodeId: string

      Returns Promise<boolean>

    • Sends data to the specified path on the node.

      Parameters

      • nodeId: string
      • path: string
      • data: string

      Returns Promise<string>