fix(vd960DBN): 消灭 data_json[1024] 中间缓冲, 防 BSS 重叠致 MQTT 上报 _raw 异常
- root cause: data_json[1024] + payload[1400] BSS 合计 2424B, 叠加 iot_mqtt_srv.c 其他缓冲 (~9KB total), 在 48KB RAM 上 与 mqttBuf[1024] 重叠, event_report 的 MQTT 二进制 泄漏到 loop_data payload - fix: 直接在 payload 构建完整 JSON, 省 1024B BSS - defense: coil_count > 4 硬限, 防 0xC0 坏帧溢出 - JSON 输出格式不变 - also: set_response_tran_to_notify 加返回值 - also: uart_srv BLE 通知逻辑重构
This commit is contained in:
@@ -308,6 +308,7 @@ uint8_t set_response_tran_to_notify(uint8_t *dat_ori, uint8_t dat_len, BLE_Notif
|
||||
}
|
||||
notify_dst->len = dat_len;
|
||||
notify_dst->flag = 1;
|
||||
return notify_dst->flag;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user