mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-31 19:25:14 +02:00
remove Kconfig
This commit is contained in:
79
Kconfig
79
Kconfig
@@ -1,79 +0,0 @@
|
|||||||
menu "MQTT"
|
|
||||||
|
|
||||||
# This is actually also handled in the ESP32 startup code, not only in FreeRTOS.
|
|
||||||
config MQTT_PROTOCOL_311
|
|
||||||
bool "MQTT Protocol version 3.1.1"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
If disable, it will use MQTT protocol version 3.1
|
|
||||||
|
|
||||||
config MQTT_SECURITY_ON
|
|
||||||
bool "Enable MQTT over SSL"
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
Enable MQTT Over SSL
|
|
||||||
|
|
||||||
config MQTT_PRIORITY
|
|
||||||
int "MQTT Task Priority"
|
|
||||||
range 1 15
|
|
||||||
default 5
|
|
||||||
|
|
||||||
config MQTT_LOG_ERROR_ON
|
|
||||||
bool "Enable MQTT Debug message"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Disable it will redurce memory and run faster
|
|
||||||
config MQTT_LOG_WARN_ON
|
|
||||||
bool "Enable MQTT Warning message"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Disable it will redurce memory and run faster
|
|
||||||
config MQTT_LOG_INFO_ON
|
|
||||||
bool "Enable MQTT Info message"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Disable it will redurce memory and run faster
|
|
||||||
config MQTT_RECONNECT_TIMEOUT
|
|
||||||
int "Reconnect timeout (in second)"
|
|
||||||
range 10 16535
|
|
||||||
default 60
|
|
||||||
|
|
||||||
config MQTT_QUEUE_BUFFER_SIZE_WORD
|
|
||||||
int "Outbox queue buffer size in word (4 bytes)"
|
|
||||||
range 256 4096
|
|
||||||
default 1024
|
|
||||||
|
|
||||||
config MQTT_BUFFER_SIZE_BYTE
|
|
||||||
int "Network buffer size for MQTT in byte"
|
|
||||||
range 128 4096
|
|
||||||
default 1024
|
|
||||||
|
|
||||||
config MQTT_MAX_HOST_LEN
|
|
||||||
int "Maximum host name len - in byte"
|
|
||||||
range 32 256
|
|
||||||
default 64
|
|
||||||
|
|
||||||
config MQTT_MAX_CLIENT_LEN
|
|
||||||
int "Maximum client id len - in byte"
|
|
||||||
range 4 128
|
|
||||||
default 32
|
|
||||||
|
|
||||||
config MQTT_MAX_USERNAME_LEN
|
|
||||||
int "Maximum mqtt username len - in byte"
|
|
||||||
range 4 128
|
|
||||||
default 32
|
|
||||||
|
|
||||||
config MQTT_MAX_PASSWORD_LEN
|
|
||||||
int "Maximum mqtt password len - in byte"
|
|
||||||
range 4 128
|
|
||||||
default 32
|
|
||||||
config MQTT_MAX_LWT_TOPIC
|
|
||||||
int "Maximum mqtt lwt topic len - in byte"
|
|
||||||
range 4 128
|
|
||||||
default 32
|
|
||||||
config MQTT_MAX_LWT_MSG
|
|
||||||
int "Maximum mqtt lwt message len - in byte"
|
|
||||||
range 4 128
|
|
||||||
default 32
|
|
||||||
|
|
||||||
endmenu
|
|
@@ -3,6 +3,24 @@
|
|||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define CONFIG_MQTT_PROTOCOL_311 1
|
||||||
|
#define CONFIG_MQTT_SECURITY_ON 1
|
||||||
|
#define CONFIG_MQTT_PRIORITY 5
|
||||||
|
#define CONFIG_MQTT_LOG_ERROR_ON
|
||||||
|
#define CONFIG_MQTT_LOG_WARN_ON
|
||||||
|
#define CONFIG_MQTT_LOG_INFO_ON
|
||||||
|
#define CONFIG_MQTT_RECONNECT_TIMEOUT 60
|
||||||
|
#define CONFIG_MQTT_QUEUE_BUFFER_SIZE_WORD 1024
|
||||||
|
#define CONFIG_MQTT_BUFFER_SIZE_BYTE 1024
|
||||||
|
#define CONFIG_MQTT_MAX_HOST_LEN 64
|
||||||
|
#define CONFIG_MQTT_MAX_CLIENT_LEN 32
|
||||||
|
#define CONFIG_MQTT_MAX_USERNAME_LEN 32
|
||||||
|
#define CONFIG_MQTT_MAX_PASSWORD_LEN 32
|
||||||
|
#define CONFIG_MQTT_MAX_LWT_TOPIC 32
|
||||||
|
#define CONFIG_MQTT_MAX_LWT_MSG 32
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_MQTT_LOG_ERROR_ON
|
#ifdef CONFIG_MQTT_LOG_ERROR_ON
|
||||||
#define mqtt_error(format, ... ) printf( "[MQTT ERROR] " format "\n", ##__VA_ARGS__)
|
#define mqtt_error(format, ... ) printf( "[MQTT ERROR] " format "\n", ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user