Picture Events

Source document: GS_GE Device Integration Documentation V1.0.7

When the device raises an alarm, it reports images. The first image is captured when the alarm is triggered, followed by approximately one image per second for 30 seconds, for about 30 images in total.

Event identifier: picture。

Request Example

Code Example
[
  {
    "origin_info": {
      "did": "test",
      "cmd": "picture",
      "data": "<Buffer ff d8 ff e0 ... 42691 more bytes>"
    },
    "mode": "event",
    "send_time": "2024-11-08 10:33:54"
  }
]
Field Description
origin_info.cmd The value picture indicates a reported image
origin_info.data Image Buffer Data
mode Device event reporting mode
send_time Original event report time

Image data is returned as a Buffer in origin_info.data. Parse, store, or transcode it promptly on the server according to your business requirements.