• Preparing search index...
  • The search index is not available
@espressif/rainmaker-base-sdk
  • @espressif/rainmaker-base-sdk
  • services/ESPRMHelpers/ESPCmdRespHelpers
  • buildCmdRespRequestBody

Function buildCmdRespRequestBody

  • buildCmdRespRequestBody(
        params: ESPCmdRespSendRequest,
    ): ESPCmdRespSendRequestBody

    Validates send-command input and builds the POST body for /user/nodes/cmd.

    Parameters

    • params: ESPCmdRespSendRequest

      Target nodes, command id, payload, and optional options.

    Returns ESPCmdRespSendRequestBody

    API-ready request body with snake_case fields.

    Throws

    ESPAPICallValidationError When node ids, cmd id, data size, or timeout are invalid.

    • Defined in src/services/ESPRMHelpers/ESPCmdRespHelpers.ts:144

Settings

Member Visibility
@espressif/rainmaker-base-sdk
  • Loading...

Generated using TypeDoc