Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt_subscribe 缓存已经改成8192, 最大接受数据971个 #95

Open
zheng618 opened this issue Jan 22, 2024 · 0 comments
Open

mqtt_subscribe 缓存已经改成8192, 最大接受数据971个 #95

zheng618 opened this issue Jan 22, 2024 · 0 comments

Comments

@zheng618
Copy link

topic: topic1_subscribe
message:{
"VIN":"1C22C00001",
"terminalID":0,
"frameID":10,
"sysDataType":1002,
"timestamp":1532345667,
"code":"01",
"data":{
"RCU":"FAFAFAFAFAFAFAFA",
"BCM":"FAFAFAFAFAFAFAFA",
"DC":"FAFAFAFAFAFAFAFA",
"EHB1":"FAFAFAFAFAFAFAFA",
"EHB2":"FAFAFAFAFAFAFAFA",
"EPB1":"FAFAFAFAFAFAFAFA",
"EPB2":"FAFAFAFAFAFAFAFA",
"EPS[2024-01-23 00:51:51.380] [warning] ---------------------------971

#define MQTT_MAX_PACKET_ID (0xFFFF - 1)
#define MQTT_TOPIC_LEN_MAX 64
#define MQTT_ACK_HANDLER_NUM_MAX 64
#define MQTT_DEFAULT_BUF_SIZE 8192
#define MQTT_DEFAULT_CMD_TIMEOUT 5000
#define MQTT_MAX_CMD_TIMEOUT 20000
#define MQTT_MIN_CMD_TIMEOUT 1000
#define MQTT_KEEP_ALIVE_INTERVAL 50 // unit: second
#define MQTT_VERSION 4 // 4 is mqtt 3.1.1
#define MQTT_RECONNECT_DEFAULT_DURATION 1000
#define MQTT_THREAD_STACK_SIZE 2048
#define MQTT_THREAD_PRIO 5
#define MQTT_THREAD_TICK 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant