This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 53c234880cffd8952a00d8dbcf080c2e9b54605e
Author: raiden00pl <[email protected]>
AuthorDate: Fri Aug 21 10:10:02 2026 +0200

    netutils/paho_mqtt: separate library worker stack size
    
    Add CONFIG_LIB_MQTT5_THREAD_STACKSIZE for threads created
    internally by Paho and use it in Thread.c.
    Keep CONFIG_UTILS_MQTT5_STACKSIZE scoped to the two utility
    application tasks.
    
    This permits S2OPC to enable MQTT through LIB_MQTT5 without
    also building unrelated command-line utilities.
    
    Signed-off-by: raiden00pl <[email protected]>
    Assisted-by: OpenAI Codex:gpt-5
---
 netutils/paho_mqtt/Kconfig            | 7 +++++++
 netutils/paho_mqtt/paho_mqtt_01.patch | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

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);

Reply via email to