Type Alias Command

Command: Message<"moddef.v1.Command"> & {
    commandId: string;
    commandRef: string;
    description: string;
    name: string;
    params: CommandParam[];
    results: CommandResult[];
    steps: CommandStep[];
}

§11.7 A multi-step register procedure on a device profile. All references (params, point_ids, bindings) resolve within the owning device profile (MDE407/MDE503). command_id MUST be unique per profile (MDE502).

Type declaration

  • commandId: string

    from field: string command_id = 1;

  • commandRef: string

    Optional free-form role tag naming the standard procedure this command implements (e.g. "ocmf:start_transaction"). Carried for consumer dispatch; intentionally not resolved or validated.

    from field: string command_ref = 2;

  • description: string

    from field: string description = 4;

  • name: string

    from field: string name = 3;

  • params: CommandParam[]

    from field: repeated moddef.v1.CommandParam params = 10;

  • results: CommandResult[]

    from field: repeated moddef.v1.CommandResult results = 30;

  • steps: CommandStep[]

    from field: repeated moddef.v1.CommandStep steps = 20;

from message moddef.v1.Command