diff --git a/netutils/paho_mqtt/Kconfig b/netutils/paho_mqtt/Kconfig index 5bd8cbf8a..454ed869d 100644 --- a/netutils/paho_mqtt/Kconfig +++ b/netutils/paho_mqtt/Kconfig @@ -9,6 +9,13 @@ config LIB_MQTT5 ---help--- A library for accessing mqtt5 client services through C libraries calls in a simple manner. +config LIB_MQTT5_THREAD_STACKSIZE + int "MQTT library thread stack size" + default 16384 + depends on LIB_MQTT5 + ---help--- + Stack size used by threads created by the Paho MQTT library. + config UTILS_MQTT5 tristate "Enable mqtt5 tool" depends on LIB_MQTT5 diff --git a/netutils/paho_mqtt/paho_mqtt_01.patch b/netutils/paho_mqtt/paho_mqtt_01.patch index 526f69ba4..0702e5a84 100644 --- a/netutils/paho_mqtt/paho_mqtt_01.patch +++ b/netutils/paho_mqtt/paho_mqtt_01.patch @@ -122,7 +122,7 @@ index f4d43fb..52f810a 100644 #else pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); -+ pthread_attr_setstacksize(&attr, CONFIG_UTILS_MQTT5_STACKSIZE); ++ pthread_attr_setstacksize(&attr, CONFIG_LIB_MQTT5_THREAD_STACKSIZE); if (pthread_create(&thread, &attr, fn, parameter) != 0) thread = 0; pthread_attr_destroy(&attr);