type alias Action

Action tuple representing a single router command.

Examples

Basic GET action

import { ACT, type Action } from "./dialect.ts";

const action: Action = [ACT.GET, "LTE_BANDINFO"];

GET with specific attributes to retrieve

import { ACT, type Action } from "./dialect.ts";

const action: Action = [ACT.GET, "LTE_SMS_UNREADMSGBOX", ["totalNumber"]];

SET with attribute values

import { ACT, type Action } from "./dialect.ts";

const action: Action = [ACT.SET, "LTE_SMS_UNREADMSGBOX", { pageNumber: "1" }];

Definition

[
string,
Record<string, string> | string[],
string,
string
]

Usage

import { type Action } from "dialect/mod.ts";