diff --git a/海亮定制.md b/海亮定制.md
index c3f50e2..e59ea3e 100644
--- a/海亮定制.md
+++ b/海亮定制.md
@@ -121,7 +121,9 @@ ${clinetId} clinetId 是基站编号,为替换字符串。
| /client/${clientId}/offline | 基站下线通知。 |
| /client/${clientId}/card/online | 答题器上线通知。 |
| /client/${clientId}/card/offline | 答题器离线通知。 |
+| /client/${client}/operate | 对基站进行设置或查询信息 |
| /client/${clientId}/report | 基站主动上报状态,或者对设置指令的回应。 |
+| /lesson/class/${clinetId}/receive | 基站对答题的设置 |
| /lesson/class/${clinetId}/send | 基站对答题的反馈 |
| /client/${clientId}/error | 基站错误信息上报 |
@@ -231,7 +233,7 @@ ${clinetId} clinetId 是基站编号,为替换字符串。
"m": {
"f": 1,
"mqtt_ip": "edunew.sunvotecloud.cn",
- "mqtt_port": 8443,
+ "mqtt_port": 1883,
"mqtt_username": "admin",
"mqtt_password": "1223456789"
}
@@ -799,13 +801,15 @@ public static String bytesToHexString(byte[] src) {
### 文本下发
#### 文本下发
-
主题: /client/${client}/operate
+
主题: /lesson/class/${clinetId}/receive
指令内容:
```json
{
"i": 60,
"en": "6",
"cmd": 1,
+ "total": 1,
+ "current": 1,
"m": [{
"sn": "2126833671",
"text": "hex:d5c5c8fd"
@@ -819,6 +823,8 @@ public static String bytesToHexString(byte[] src) {
| --- | --- |
| i = 60 | 文本下发 |
| sn |键盘列表 |
+| current |当前第几包 |
+| total |一共多少包 |
| cmd |下发的命令
1: 姓名下发
4: 第二行文本
85: 自判题判断
87: 清除 |
| text |标题信息,以hex:开头添加的内容 内容为GBK的hex编码 |
@@ -855,12 +861,11 @@ public static String bytesToHexString(byte[] src) {
"i": 61,
"en": "6",
"cmd": 1,
+ "total": 1,
+ "current": 1,
"m": [{
"sn": "2126833671",
"success": 0
- },{
- "sn": "2126833672",
- "success": 0
}]
}
```
@@ -868,12 +873,14 @@ public static String bytesToHexString(byte[] src) {
| --- | --- |
| i = 61 | 文本下发返回 |
| sn |键盘号 |
+| current |当前第几包 |
+| total |一共多少包 |
| cmd |下发的命令
1: 姓名下发
4: 第二行文本
85:自判题判断
87:清除 |
| success | 是否成功。
0 表示成功
-1 失败 |
### 学生卡信息上报
卡初始化组网的时候会上报一次
-
主题:/client/${client}/report
+
主题:/lesson/class/${clinetId}/send
指令内容:
```json
{