Overview
1、Before starting, it is recommended to learn MQTT related knowledge. The official assumption is that you already know about Mqtt, Http, Redis, and master the basic usage. 2、For MQTT message server, we recommend using the EMQX open source version; MQTT connection protocol 3.1.1. 3、It is recommended to use Java Spring boot related technologies for backend development.
Connect
| request | note | protocol |
|---|---|---|
| Authentication | Return MQTT connection parameter information | HTTP |
| Config | Return device configuration information | HTTP |
Command List
| name | send | reply | protocol |
|---|---|---|---|
| Check | check | 0x10 | MQTT |
| Periodic Upload | upload_all | 0x10 | MQTT、HTTP |
| Pop-up By Hole | popup | 0x21 | MQTT |
| Pop-up By SN | popup_sn | 0x31 | MQTT |
| Return | -- | 0x40 | MQTT、HTTP |
| Return(Fix) | - | 0x28 | MQTT |
| Upgrade | push_version_publish | -- | HTTP |
| Heart | 0x7A | 0x7A | MQTT |
| Update screen ads | load_ad | - | MQTT、HTTP |
