测试用服务器
终端授权信息
程序开始运行时订阅该主题接收授权信息
Accepts the following message:
设备MQTT授权信息
{
"allow_anonymous": true,
"product": [
{
"expired_date": "string",
"product_id": 0
}
]
}
已授权设备Mac地址
程序开始运行时订阅该主题接收授权设备Mac地址
Accepts the following message:
授权设备列表
[
"DAFADC0A9311",
"DAFADC0A9312",
"DAFADC0A931A"
]
终端收数据主题
设备Mac地址,全大写,无冒号
Accepts one of the following messages:
{
"event": "shutdown",
"time": 1621425835000,
"sender": "string"
}
{
"event": "reboot",
"time": 1621425835000,
"sender": "string"
}
{
"event": "forceUpdate",
"time": 1621425835000,
"sender": "string"
}
推送的同时需要写入到配置中,开机获取
{
"event": "backlight",
"content": [
{
"startTime": "string",
"endTime": "string",
"week": "0"
}
],
"time": 1621425835000,
"sender": "string"
}
{
"event": "disableBacklight",
"time": 1621425835000,
"sender": "string"
}
{
"event": "enableBacklight",
"time": 1621425835000,
"sender": "string"
}
需要上报服务器
{
"event": "diskInfo",
"time": 1621425835000,
"sender": "string"
}
客户端上报下载进度给服务器
{
"event": "downloadInfo",
"time": 1621425835000,
"sender": "string"
}
客户端上传截图文件后,上传结果上报给服务器
{
"event": "screenCap",
"content": {
"code": 0
},
"time": 1621425835000,
"sender": "string"
}
客户端上传视频文件后,上传结果上报给服务器
{
"event": "screenRecord",
"content": {
"duration": 1
},
"time": 1621425835000,
"sender": "string"
}
跑马灯位置默认位于屏幕底部;写入到配置中,开机获取
{
"event": "marqueeLocation",
"content": {
"marginBottom": 0
},
"time": 1621425835000,
"sender": "string"
}
包含按周循环开关机和跨天开关机;写入到配置中,开机获取
跨天开关机可以两种:
{
"event": "timerSwitch",
"content": {
"normal": {
"startDate": "string",
"endDate": "string",
"days": [
{
"startTime": "string",
"endTime": "string",
"week": "0"
}
]
},
"crossDays": [
{
"startDate": "string",
"endDate": "string",
"days": [
{
"startTime": "string",
"endTime": "string",
"week": "0"
}
]
}
]
},
"time": 1621425835000,
"sender": "string"
}
包含精简模式和高级模式的亮度设置;写入到配置中,开机获取
{
"event": "brightness",
"content": [
{
"startTime": "string",
"endTime": "string",
"value": 100,
"week": "0"
}
],
"time": 1621425835000,
"sender": "string"
}
包含精简模式和高级模式的音量设置;写入到配置中,开机获取
{
"event": "volume",
"content": [
{
"startTime": "string",
"endTime": "string",
"value": 100,
"week": "0"
}
],
"time": 1621425835000,
"sender": "string"
}
写入到配置中,开机获取
{
"event": "downloadSpeedLimit",
"content": {
"value": 0
},
"time": 1621425835000,
"sender": "string"
}
写入到配置中,开机获取
{
"event": "saveLog",
"content": {
"isSave": true
},
"time": 1621425835000,
"sender": "string"
}
客户端上传日志文件后,上传结果上报给服务器
{
"event": "fetchLog",
"content": {
"url": "string"
},
"time": 1621425835000,
"sender": "string"
}
当后台删除设备时发送该消息,终端刷新页面
{
"event": "reload",
"time": 1621425835000,
"sender": "server"
}
终端发数据主题
设备Mac地址,全大写,无冒号
Accepts one of the following messages:
各个分区可用磁盘空间信息
{
"event": "uploadDiskInfo",
"content": [
{
"path": "string",
"totalSize": 0,
"availableSize": 0
}
],
"deviceID": "DAFADC0A9311",
"time": 1621425835000,
"sender": "android"
}
下载信息写入数据库后,通知给服务器实时更新UI。包含下载进度、下载结果
{
"event": "uploadDownloadInfo",
"content": [
{
"progress": 1,
"code": 0
}
],
"deviceID": "DAFADC0A9311",
"time": 1621425835000,
"sender": "android"
}
连接服务器成功后上报设备主板类型、内核版本、软件版本等信息给服务器
{
"event": "uploadDeviceInfo",
"content": {
"ip": "string",
"mac": "string",
"systemVersion": "string",
"kernelVersion": "string",
"appVersion": "string",
"motherboard": "XZ358"
},
"deviceID": "DAFADC0A9311",
"time": 1621425835000,
"sender": "android"
}
上传屏幕截图文件后,把结果通知给服务器
{
"event": "uploadScreenCap",
"content": {
"code": 0
},
"deviceID": "DAFADC0A9311",
"time": 1621425835000,
"sender": "android"
}
上传屏幕录屏文件后,把结果通知给服务器
{
"event": "uploadScreenRecord",
"content": {
"code": 0
},
"deviceID": "DAFADC0A9311",
"time": 1621425835000,
"sender": "android"
}
上传日志文件后,把结果通知给服务器
{
"event": "uploadLog",
"deviceID": "DAFADC0A9311",
"time": 1621425835000,
"sender": "android"
}
设备MQTT授权信息
推送的同时需要写入到配置中,开机获取
需要上报服务器
客户端上报下载进度给服务器
客户端上报设备主板类型、内核版本、软件版本等信息给服务器
各个分区可用磁盘空间信息
下载信息写入数据库后,通知给服务器实时更新UI。包含下载进度、下载结果
连接服务器成功后上报设备主板类型、内核版本、软件版本等信息给服务器
上传屏幕截图文件后,把结果通知给服务器
上传屏幕录屏文件后,把结果通知给服务器
上传日志文件后,把结果通知给服务器
客户端上传截图文件后,上传结果上报给服务器
客户端上传视频文件后,上传结果上报给服务器
跑马灯位置默认位于屏幕底部;写入到配置中,开机获取
包含按周循环开关机和跨天开关机;写入到配置中,开机获取
跨天开关机可以两种:
包含精简模式和高级模式的亮度设置;写入到配置中,开机获取
包含精简模式和高级模式的音量设置;写入到配置中,开机获取
写入到配置中,开机获取
写入到配置中,开机获取
客户端上传日志文件后,上传结果上报给服务器
当后台删除设备时发送该消息,终端刷新页面
开始时分时间,如 "08:00"
结束时分时间,结束时间必须大于开始时间,如 "10:00"
星期几,0是周日
单位毫秒,消息时间戳
设备的唯一ID,Android设备为Mac地址
消息来源
消息来自Server
消息来自Android设备