type alias Command

A Baichuan command: its id, firmware name, and parameter elements.

Type Parameters

P extends readonly AnyXmlParam[] = readonly AnyXmlParam[]

The parameter codecs, as a tuple.

Properties

id: number

The command id sent in the message header.

name: string

The name the firmware's dispatch table gives the command.

The parameter elements the command's bodies may carry.

firmware: readonly Firmware[]

The firmware builds known to register the command, empty when unknown. Registration does not promise that a given device answers it.

Usage

import { type Command } from "protocol/command.ts";