Request body for POST /user/nodes/cmd.

interface ESPCmdRespSendRequestBody {
    cmd: number;
    data: string | Record<string, unknown>;
    is_base64?: boolean;
    node_ids: string[];
    override?: boolean;
    timeout?: number;
}

Properties

cmd: number

Command id in the range 0–65535.

data: string | Record<string, unknown>

Command payload as a string or JSON object.

is_base64?: boolean

When true, data is treated as base64-encoded.

node_ids: string[]

Target node ids (1–25 unique values).

override?: boolean

When true, overrides an existing pending command for the same node/cmd.

timeout?: number

Request timeout in seconds, or -1 for no timeout.