variable ACT

Action type constants for TP-Link router commands.

These values specify the operation type when constructing actions:

  • GET (1): Retrieve data
  • SET (2): Modify data
  • ADD (3): Add new entry
  • DEL (4): Delete entry
  • GL (5): Get list
  • GS (6): Get/Set combined operation
  • OP (7): Execute operation
  • CGI (8): CGI script execution

The constants are dialect-neutral: each dialect maps them onto whatever its firmware expects (decimal digits for gdprText, go/gl/cgi strings for gdprJson).

Examples

Action type constants

import { assertEquals } from "@std/assert";
import { ACT } from "./dialect.ts";

assertEquals(ACT.GET, 1);
assertEquals(ACT.SET, 2);

Properties

GET: number
SET: number
ADD: number
DEL: number
GL: number
GS: number
OP: number
CGI: number

Usage

import { ACT } from "mod.ts";