mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
mqtt: Add mqtt5 Kconfig
This commit is contained in:
parent
feeb023447
commit
5a7b17ff7d
@ -1,7 +1,10 @@
|
|||||||
idf_component_register(SRCS "esp-mqtt/mqtt_client.c"
|
set(srcs esp-mqtt/mqtt_client.c esp-mqtt/lib/mqtt_msg.c esp-mqtt/lib/mqtt_outbox.c esp-mqtt/lib/platform_esp32_idf.c)
|
||||||
"esp-mqtt/lib/mqtt_msg.c"
|
|
||||||
"esp-mqtt/lib/mqtt_outbox.c"
|
if(CONFIG_MQTT_PROTOCOL_5)
|
||||||
"esp-mqtt/lib/platform_esp32_idf.c"
|
list(APPEND srcs esp-mqtt/lib/mqtt5_msg.c esp-mqtt/mqtt5_client.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
idf_component_register(SRCS "${srcs}"
|
||||||
INCLUDE_DIRS esp-mqtt/include
|
INCLUDE_DIRS esp-mqtt/include
|
||||||
PRIV_INCLUDE_DIRS "esp-mqtt/lib/include"
|
PRIV_INCLUDE_DIRS "esp-mqtt/lib/include"
|
||||||
PRIV_REQUIRES esp_timer
|
PRIV_REQUIRES esp_timer
|
||||||
|
@ -6,6 +6,12 @@ menu "ESP-MQTT Configurations"
|
|||||||
help
|
help
|
||||||
If not, this library will use MQTT protocol 3.1
|
If not, this library will use MQTT protocol 3.1
|
||||||
|
|
||||||
|
config MQTT_PROTOCOL_5
|
||||||
|
bool "Enable MQTT protocol 5.0"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
If not, this library will not support MQTT 5.0
|
||||||
|
|
||||||
config MQTT_TRANSPORT_SSL
|
config MQTT_TRANSPORT_SSL
|
||||||
bool "Enable MQTT over SSL"
|
bool "Enable MQTT over SSL"
|
||||||
default y
|
default y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user