variable PUSHES

The messages the firmware pushes unasked. Names are descriptive: the firmware dispatch tables only list requests.

Examples

Find the push for a command id

import { assertEquals } from "@std/assert";
import { PUSHES } from "@hertzg/reolink-api/protocol/commands";

const push = Object.values(PUSHES).find((candidate) => candidate.id === 79);

assertEquals(push?.name, "SERIAL_CHANGE_REPORT");

Type

Usage

import { PUSHES } from "protocol/commands.ts";