variable BAICHUAN_CMD

Command ids (the header's cmdId) this package sends or reads.

Examples

Check what a push is

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

assertEquals(BAICHUAN_CMD.ALARM_EVENT, 33);

Properties

LOGIN: number

Nonce request and login, both on the host channel.

SUBSCRIBE: number

Subscribe to alarm pushes.

An alarm push: motion, doorbell, tamper or AI state.

PING: number

Ping, answered by the camera; keeps an idle connection open.

Move, zoom or stop a PTZ camera.

PTZ_PRESET: number

Move a PTZ camera to a saved preset.

SNAPSHOT: number

Take a JPEG snapshot, streamed back as payload.

List the saved PTZ presets.

Read the current PTZ pan and tilt position.

SIREN: number

Play or stop the siren.

Read the privacy mode (sleep) state.

Turn the privacy mode (sleep) on or off.