refactor(vd960DBN): 缓冲区 2048→1024,单次交互不超 1KB
- IOT_MQTT_RECV_BUF_LEN: 2048 → 1024 - IOT_MQTT_SEND_BUF_LEN: 2048 → 1024 - data_json 改用宏 - iot_handle_publish 的 json[] 改 static 防栈溢出
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
#define IOT_MQTT_RECONNECT_MIN_MS 5000 // 最小重连间隔
|
||||
#define IOT_MQTT_RECONNECT_MAX_MS 60000 // 最大重连间隔 (指数退避上限)
|
||||
#define IOT_MQTT_HEARTBEAT_MS 60000 // 心跳上报周期 (60s)
|
||||
#define IOT_MQTT_RECV_BUF_LEN 2048 // 接收缓冲区
|
||||
#define IOT_MQTT_SEND_BUF_LEN 2048 // 发送缓冲区
|
||||
#define IOT_MQTT_RECV_BUF_LEN 1024 // 接收缓冲区 (单次交互 ≤1024)
|
||||
#define IOT_MQTT_SEND_BUF_LEN 1024 // 发送缓冲区 (单次交互 ≤1024)
|
||||
#define IOT_MQTT_TOPIC_MAX_LEN 128 // Topic 最大长度
|
||||
|
||||
/*===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user