diff --git a/netutils/mqttc/Kconfig b/netutils/mqttc/Kconfig index de2001e19..a76d0b2f0 100644 --- a/netutils/mqttc/Kconfig +++ b/netutils/mqttc/Kconfig @@ -11,6 +11,10 @@ config NETUTILS_MQTTC if NETUTILS_MQTTC +config NETUTILS_MQTTC_WITH_MBEDTLS + bool "Enable MQTT-C with mbedtls" + default n + config NETUTILS_MQTTC_VERSION string "MQTT-C Version" default "1.1.5" diff --git a/netutils/mqttc/Make.defs b/netutils/mqttc/Make.defs index 155950aec..7dbeb0035 100644 --- a/netutils/mqttc/Make.defs +++ b/netutils/mqttc/Make.defs @@ -26,4 +26,8 @@ CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" \ CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" \ $(APPDIR)/netutils/mqttc/MQTT-C/include} +ifneq ($(CONFIG_NETUTILS_MQTTC_WITH_MBEDTLS),) +CFLAGS += -DMQTT_USE_MBEDTLS +endif + endif