You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by si...@apache.org on 2026/03/02 16:14:51 UTC

(nuttx-apps) branch master updated (e4b84b29d -> 7d13ee204)

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

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


    from e4b84b29d ostest/hrtimer: Update the comments.
     new c46ed184e examples/mqttc: Fix QOS arguments parsing (char->long).
     new 7d13ee204 examples/mqttc: Fix mqtt_init() failed message typo (ERRPR -> ERROR).

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/mqttc/mqttc_pub.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


(nuttx-apps) 02/02: examples/mqttc: Fix mqtt_init() failed message typo (ERRPR -> ERROR).

Posted by si...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 7d13ee204b6fb8545d5eac3b5a1eae9cde3ba14d
Author: Mihai Pacuraru <mp...@protonmail.com>
AuthorDate: Sun Mar 1 22:50:09 2026 +0200

    examples/mqttc: Fix mqtt_init() failed message typo (ERRPR -> ERROR).
    
    Modify the message logged when mqtt_init() failed to execute properly.
    
    Signed-off-by: Mihai Pacuraru <mp...@protonmail.com>
---
 examples/mqttc/mqttc_pub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/mqttc/mqttc_pub.c b/examples/mqttc/mqttc_pub.c
index 9beae6885..306df6dcc 100644
--- a/examples/mqttc/mqttc_pub.c
+++ b/examples/mqttc/mqttc_pub.c
@@ -528,7 +528,7 @@ int main(int argc, FAR char *argv[])
                       NULL);
   if (mqtterr != MQTT_OK)
     {
-      printf("ERRPR! mqtt_init() failed.\n");
+      printf("ERROR! mqtt_init() failed.\n");
       goto err_with_conn;
     }
 


(nuttx-apps) 01/02: examples/mqttc: Fix QOS arguments parsing (char->long).

Posted by si...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c46ed184edceea1a2d4c63ed428aeeefb066b9c4
Author: Mihai Pacuraru <mp...@protonmail.com>
AuthorDate: Sat Feb 28 11:43:31 2026 +0200

    examples/mqttc: Fix QOS arguments parsing (char->long).
    
    Modify the switch cases in parsearg function for QOS levels definition.
    The comparison was made between a long value and a char.
    
    Signed-off-by: Mihai Pacuraru <mp...@protonmail.com>
---
 examples/mqttc/mqttc_pub.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/mqttc/mqttc_pub.c b/examples/mqttc/mqttc_pub.c
index 6948afb42..9beae6885 100644
--- a/examples/mqttc/mqttc_pub.c
+++ b/examples/mqttc/mqttc_pub.c
@@ -192,13 +192,13 @@ static void parsearg(int argc, FAR char *argv[],
           case 'q':
             switch (strtol(optarg, NULL, 10))
               {
-                case '0':
+                case 0L:
                   cfg->qos = MQTT_PUBLISH_QOS_0;
                   break;
-                case '1':
+                case 1L:
                   cfg->qos = MQTT_PUBLISH_QOS_1;
                   break;
-                case '2':
+                case 2L:
                   cfg->qos = MQTT_PUBLISH_QOS_2;
                   break;
                 }