Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

    • Event message push process
    • Event message type definition
    • Event message format definition
  • IoT things data model

  • HTTP interface

  • Reference documents

On this page
Overview
Set the message callback address
Developers receive messages from the open platform

Event Message Push Process Guide for Developers - Imou Open Platform

Event message push

Overview

The motion detection alarm, online time of online and offline, and various smart event messages generated by the device under the developer's application can be pushed to the developer's back-end callback address service through the open platform. When the developer's back-end receives the push from the easy4ip open platform After the event message, you can perform subsequent processing, such as pushing it to your own application again. Specifically, complete the setting of alarm callback and the receiving of alarm messages through the following two steps.

Remarks:

  1. For the event message type, please refer to Event Message Type Definition

  2. Refer to Event Message Format Definition for event message format

Set the message callback address

The developer sets the callback address by calling the setMessageCallback interface of the open platform. The callback address is a service target address that can receive external messages in the developer's backend. Subsequent event messages generated by the open platform will push messages in the corresponding format to this callback address.

Open Platform HTTP Request Format

Developers receive messages from the open platform

The open platform pushes various event messages to the developer's back-end callback address. What the developer has to do is to promptly push the message to the app he developed after receiving the message. The specific process is as follows (by motion detection alarm, device offline):

Open Platform HTTP Request Format

Special attention: After receiving the message pushed by the open platform, the developer's callback service must return a response message of 200. If the open platform finds that the developer's callback service does not return a response multiple times, the open platform will no longer push Message to this callback address.

Home Assistant Development
Event message type definition