improving MQTT transmission speed

This commit is contained in:
wgzAIIT
2023-06-21 13:52:40 +08:00
parent 87921c4212
commit 6f3d3b8862
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -30,8 +30,8 @@
#define SERVERIP "101.133.196.127"
#define SERVERPORT "1883"
#define PACK_SIZE 512 //存放报文数据缓冲区大小
#define CMD_SIZE 512 //保存推送的PUBLISH报文中的数据缓冲区大小
#define PACK_SIZE 512 //存放报文数据缓冲区大小
#define CMD_SIZE 2048 //保存推送的PUBLISH报文中的数据缓冲区大小
typedef struct{
uint8_t Pack_buff[PACK_SIZE]; //存放发送报文数据缓冲区