fix: MQTT协议 V1.02 同步 — 字段名缩短 + 时间单位修正
- docs/DLD960_IoT_MQTT协议.md: 字段缩写 + 时间单位 5ms→50ms - vd960DBN/iot_mqtt_srv.c: 6字段缩短对齐协议 (level/iscar/freq/diff/sens/cndtn) - vd960DBN/tcp_json_srv.c: gap_ms5/passtime_ms → gap/passtime - vd960DBN/loop_uart_proto.h: 注释 5ms→50ms - DBNMQTTool/main.py: 模拟样本数据字段同步
This commit is contained in:
@@ -1044,7 +1044,7 @@ static int format_sensor_json(char *buf, uint16_t buf_size, const LUP_SensorRepo
|
||||
switch (cs->misc_type) {
|
||||
case 0:
|
||||
// car_state=0(无车)→通过时间, car_state=1(有车)→车间距
|
||||
misc_field = cs->car_state ? "\"gap_ms5\"" : "\"passtime_ms\"";
|
||||
misc_field = cs->car_state ? "\"gap\"" : "\"passtime\"";
|
||||
misc_val = cs->misc.passtime_ms;
|
||||
break;
|
||||
case 1: misc_field = "\"cut_amount\""; misc_val = cs->misc.cut_amount; break;
|
||||
|
||||
Reference in New Issue
Block a user