Optimize ota transfer function

This commit is contained in:
wgzAIIT
2023-09-12 09:32:14 +08:00
parent 652e5789a7
commit e61ffc4589
2 changed files with 25 additions and 29 deletions

View File

@@ -25,7 +25,7 @@
#include <stdint.h>
#define KEEPALIVE_TIME 300 //保活时间(单位s),300s
#define HEART_TIME 120000 //空闲时发送心跳包的时间间隔(单位ms),120s
#define HEART_TIME 200000 //空闲时发送心跳包的时间间隔(单位ms),200s
#define PACK_SIZE 512 //存放报文数据缓冲区大小
#define CMD_SIZE 3072 //保存推送的PUBLISH报文中的数据缓冲区大小
#define CLIENTID_SIZE 64 //存放客户端ID的缓冲区大小