Select one of the symbols to view example projects that use it.
 
Outline
#define _MQTT_CONFIG_H_
#include "sdkconfig.h"
#define MQTT_PROTOCOL_311
#define MQTT_PROTOCOL_5
#define MQTT_RECON_DEFAULT_MS
#define MQTT_POLL_READ_TIMEOUT_MS
#define MQTT_POLL_READ_TIMEOUT_MS
#define MQTT_MSG_ID_INCREMENTAL
#define MQTT_SKIP_PUBLISH_IF_DISCONNECTED
#define MQTT_REPORT_DELETED_MESSAGES
#define MQTT_BUFFER_SIZE_BYTE
#define MQTT_BUFFER_SIZE_BYTE
#define MQTT_TASK_PRIORITY
#define MQTT_TASK_PRIORITY
#define MQTT_TASK_STACK
#define MQTT_TASK_STACK
#define MQTT_KEEPALIVE_TICK
#define MQTT_NETWORK_TIMEOUT_MS
#define MQTT_TCP_DEFAULT_PORT
#define MQTT_TCP_DEFAULT_PORT
#define MQTT_SSL_DEFAULT_PORT
#define MQTT_SSL_DEFAULT_PORT
#define MQTT_WS_DEFAULT_PORT
#define MQTT_WS_DEFAULT_PORT
#define MQTT_WSS_DEFAULT_PORT
#define MQTT_WSS_DEFAULT_PORT
#define MQTT_CORE_SELECTION_ENABLED
#define MQTT_DISABLE_API_LOCKS
#define MQTT_TASK_CORE
#define MQTT_TASK_CORE
#define MQTT_TASK_CORE
#define OUTBOX_EXPIRED_TIMEOUT_MS
#define OUTBOX_EXPIRED_TIMEOUT_MS
#define MQTT_ENABLE_SSL
#define MQTT_ENABLE_WS
#define MQTT_ENABLE_WSS
#define MQTT_DEFAULT_RETRANSMIT_TIMEOUT_MS
#define MQTT_EVENT_QUEUE_SIZE
#define MQTT_EVENT_QUEUE_SIZE
#define MQTT_OUTBOX_MEMORY
#define MQTT_OUTBOX_MEMORY
#define OUTBOX_MAX_SIZE
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/mqtt/esp-mqtt/lib/include/mqtt_config.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. * Tuan PM <tuanpm at live dot com> *//* ... */ #ifndef _MQTT_CONFIG_H_ #define _MQTT_CONFIG_H_ #include "sdkconfig.h" #ifdef CONFIG_MQTT_PROTOCOL_311 #define MQTT_PROTOCOL_311 #endif #ifdef CONFIG_MQTT_PROTOCOL_5 #define MQTT_PROTOCOL_5 #endif #define MQTT_RECON_DEFAULT_MS (10*1000) #ifdef CONFIG_MQTT_POLL_READ_TIMEOUT_MS #define MQTT_POLL_READ_TIMEOUT_MS CONFIG_MQTT_POLL_READ_TIMEOUT_MS #else #define MQTT_POLL_READ_TIMEOUT_MS (1000) #endif #define MQTT_MSG_ID_INCREMENTAL CONFIG_MQTT_MSG_ID_INCREMENTAL #define MQTT_SKIP_PUBLISH_IF_DISCONNECTED CONFIG_MQTT_SKIP_PUBLISH_IF_DISCONNECTED #define MQTT_REPORT_DELETED_MESSAGES CONFIG_MQTT_REPORT_DELETED_MESSAGES #if CONFIG_MQTT_BUFFER_SIZE #define MQTT_BUFFER_SIZE_BYTE CONFIG_MQTT_BUFFER_SIZE #else #define MQTT_BUFFER_SIZE_BYTE 1024 #endif #if CONFIG_MQTT_TASK_PRIORITY #define MQTT_TASK_PRIORITY CONFIG_MQTT_TASK_PRIORITY #else #define MQTT_TASK_PRIORITY 5 #endif #if CONFIG_MQTT_TASK_STACK_SIZE #define MQTT_TASK_STACK CONFIG_MQTT_TASK_STACK_SIZE #else #define MQTT_TASK_STACK (6*1024) #endif #define MQTT_KEEPALIVE_TICK (120) #define MQTT_NETWORK_TIMEOUT_MS (10000) #ifdef CONFIG_MQTT_TCP_DEFAULT_PORT #define MQTT_TCP_DEFAULT_PORT CONFIG_MQTT_TCP_DEFAULT_PORT #else #define MQTT_TCP_DEFAULT_PORT 1883 #endif #ifdef CONFIG_MQTT_SSL_DEFAULT_PORT #define MQTT_SSL_DEFAULT_PORT CONFIG_MQTT_SSL_DEFAULT_PORT #else #define MQTT_SSL_DEFAULT_PORT 8883 #endif #ifdef CONFIG_MQTT_WS_DEFAULT_PORT #define MQTT_WS_DEFAULT_PORT CONFIG_MQTT_WS_DEFAULT_PORT #else #define MQTT_WS_DEFAULT_PORT 80 #endif #ifdef CONFIG_MQTT_WSS_DEFAULT_PORT #define MQTT_WSS_DEFAULT_PORT CONFIG_MQTT_WSS_DEFAULT_PORT #else #define MQTT_WSS_DEFAULT_PORT 443 #endif #define MQTT_CORE_SELECTION_ENABLED CONFIG_MQTT_TASK_CORE_SELECTION_ENABLED #ifdef CONFIG_MQTT_DISABLE_API_LOCKS #define MQTT_DISABLE_API_LOCKS CONFIG_MQTT_DISABLE_API_LOCKS #endif #ifdef CONFIG_MQTT_USE_CORE_0 #define MQTT_TASK_CORE 0 #else #ifdef CONFIG_MQTT_USE_CORE_1 #define MQTT_TASK_CORE 1 #else #define MQTT_TASK_CORE 0 #endif/* ... */ #endif #ifdef CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS #define OUTBOX_EXPIRED_TIMEOUT_MS CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS #else #define OUTBOX_EXPIRED_TIMEOUT_MS (30*1000) #endif #define MQTT_ENABLE_SSL CONFIG_MQTT_TRANSPORT_SSL #define MQTT_ENABLE_WS CONFIG_MQTT_TRANSPORT_WEBSOCKET #define MQTT_ENABLE_WSS CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE #define MQTT_DEFAULT_RETRANSMIT_TIMEOUT_MS 1000 #ifdef CONFIG_MQTT_EVENT_QUEUE_SIZE #define MQTT_EVENT_QUEUE_SIZE CONFIG_MQTT_EVENT_QUEUE_SIZE #else #define MQTT_EVENT_QUEUE_SIZE 1 #endif #ifdef CONFIG_MQTT_OUTBOX_DATA_ON_EXTERNAL_MEMORY #define MQTT_OUTBOX_MEMORY MALLOC_CAP_SPIRAM #else #define MQTT_OUTBOX_MEMORY MALLOC_CAP_DEFAULT #endif #define OUTBOX_MAX_SIZE (4*1024)/* ... */ #endif
Details