/* * 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"#ifdefCONFIG_MQTT_PROTOCOL_311#defineMQTT_PROTOCOL_311#endif#ifdefCONFIG_MQTT_PROTOCOL_5#defineMQTT_PROTOCOL_5#endif#defineMQTT_RECON_DEFAULT_MS(10*1000)#ifdefCONFIG_MQTT_POLL_READ_TIMEOUT_MS#defineMQTT_POLL_READ_TIMEOUT_MSCONFIG_MQTT_POLL_READ_TIMEOUT_MS#else#defineMQTT_POLL_READ_TIMEOUT_MS(1000)#endif#defineMQTT_MSG_ID_INCREMENTALCONFIG_MQTT_MSG_ID_INCREMENTAL#defineMQTT_SKIP_PUBLISH_IF_DISCONNECTEDCONFIG_MQTT_SKIP_PUBLISH_IF_DISCONNECTED#defineMQTT_REPORT_DELETED_MESSAGESCONFIG_MQTT_REPORT_DELETED_MESSAGES#ifCONFIG_MQTT_BUFFER_SIZE#defineMQTT_BUFFER_SIZE_BYTECONFIG_MQTT_BUFFER_SIZE#else#defineMQTT_BUFFER_SIZE_BYTE1024#endif#ifCONFIG_MQTT_TASK_PRIORITY#defineMQTT_TASK_PRIORITYCONFIG_MQTT_TASK_PRIORITY#else#defineMQTT_TASK_PRIORITY5#endif#ifCONFIG_MQTT_TASK_STACK_SIZE#defineMQTT_TASK_STACKCONFIG_MQTT_TASK_STACK_SIZE#else#defineMQTT_TASK_STACK(6*1024)#endif#defineMQTT_KEEPALIVE_TICK(120)#defineMQTT_NETWORK_TIMEOUT_MS(10000)#ifdefCONFIG_MQTT_TCP_DEFAULT_PORT#defineMQTT_TCP_DEFAULT_PORTCONFIG_MQTT_TCP_DEFAULT_PORT#else#defineMQTT_TCP_DEFAULT_PORT1883#endif#ifdefCONFIG_MQTT_SSL_DEFAULT_PORT#defineMQTT_SSL_DEFAULT_PORTCONFIG_MQTT_SSL_DEFAULT_PORT#else#defineMQTT_SSL_DEFAULT_PORT8883#endif#ifdefCONFIG_MQTT_WS_DEFAULT_PORT#defineMQTT_WS_DEFAULT_PORTCONFIG_MQTT_WS_DEFAULT_PORT#else#defineMQTT_WS_DEFAULT_PORT80#endif#ifdefCONFIG_MQTT_WSS_DEFAULT_PORT#defineMQTT_WSS_DEFAULT_PORTCONFIG_MQTT_WSS_DEFAULT_PORT#else#defineMQTT_WSS_DEFAULT_PORT443#endif#defineMQTT_CORE_SELECTION_ENABLEDCONFIG_MQTT_TASK_CORE_SELECTION_ENABLED#ifdefCONFIG_MQTT_DISABLE_API_LOCKS#defineMQTT_DISABLE_API_LOCKSCONFIG_MQTT_DISABLE_API_LOCKS#endif#ifdefCONFIG_MQTT_USE_CORE_0#defineMQTT_TASK_CORE0#else#ifdefCONFIG_MQTT_USE_CORE_1#defineMQTT_TASK_CORE1#else#defineMQTT_TASK_CORE0#endif/* ... */#endif#ifdefCONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS#defineOUTBOX_EXPIRED_TIMEOUT_MSCONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS#else#defineOUTBOX_EXPIRED_TIMEOUT_MS(30*1000)#endif#defineMQTT_ENABLE_SSLCONFIG_MQTT_TRANSPORT_SSL#defineMQTT_ENABLE_WSCONFIG_MQTT_TRANSPORT_WEBSOCKET#defineMQTT_ENABLE_WSSCONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE#defineMQTT_DEFAULT_RETRANSMIT_TIMEOUT_MS1000#ifdefCONFIG_MQTT_EVENT_QUEUE_SIZE#defineMQTT_EVENT_QUEUE_SIZECONFIG_MQTT_EVENT_QUEUE_SIZE#else#defineMQTT_EVENT_QUEUE_SIZE1#endif#ifdefCONFIG_MQTT_OUTBOX_DATA_ON_EXTERNAL_MEMORY#defineMQTT_OUTBOX_MEMORYMALLOC_CAP_SPIRAM#else#defineMQTT_OUTBOX_MEMORYMALLOC_CAP_DEFAULT#endif#defineOUTBOX_MAX_SIZE(4*1024)/* ... */#endif
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.