arduino-mqtt | MQTT library for Arduino

 by   256dpi C Version: v2.5.1 License: MIT

kandi X-RAY | arduino-mqtt Summary

kandi X-RAY | arduino-mqtt Summary

arduino-mqtt is a C library typically used in Internet of Things (IoT), Arduino applications. arduino-mqtt has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

MQTT library for Arduino
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              arduino-mqtt has a medium active ecosystem.
              It has 894 star(s) with 215 fork(s). There are 59 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 13 open issues and 227 have been closed. On average issues are closed in 500 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of arduino-mqtt is v2.5.1

            kandi-Quality Quality

              arduino-mqtt has no bugs reported.

            kandi-Security Security

              arduino-mqtt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              arduino-mqtt is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              arduino-mqtt releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of arduino-mqtt
            Get all kandi verified functions for this library.

            arduino-mqtt Key Features

            No Key Features are available at this moment for arduino-mqtt.

            arduino-mqtt Examples and Code Snippets

            No Code Snippets are available at this moment for arduino-mqtt.

            Community Discussions

            QUESTION

            Socket error on client <>, disconnecting with Paho MQTT-SN Gateway and ESP8266 CLient
            Asked 2019-Nov-27 at 03:20

            I'm trying to test MQTT-SN.

            I'm using Mosquitto Broker, Paho MQTT-SN Gateway and this library (https://github.com/S3ler/arduino-mqtt-sn-client) for the clients.

            I'm using an esp8266 as a client.

            With this client, I can connect, subscribe, receive from subscribed topics but I cant publish into topics

            ...

            ANSWER

            Answered 2019-Nov-27 at 03:20

            Thank you for the help Dalton Cézane.

            But I found the problem in an open issue in the client's library:

            Having trouble with your example WiFiUdpMqttSnClient program in that it does not successfully publish the test messages. I'm using paho-mqtt-sn gateway.

            I'm bashing around in the dark a bit but I think this is because it publishes the messages with the flag TopicIdType set to 2. I think it should be zero (normal) because it's not pre-registered nor is it a short topic.

            In file MqttSnClient.h line 216 the call to send_publish has short_topic set to true. But that's not all; in file mqttsn_messages.h around line 215 if short_topic flag is false it sets the flag to predefined. I've removed the latter 'else' clause so the flag is set to zero and I can now publish successfully.

            I suspect my hack is not a complete solution but I hope it helps you resolve this issue.

            This comment was made by @nottledim, big thanks!

            Now i can publish without a problem using my esp8266.

            Just leaving here if anyone has this problem.

            link to the issue: https://github.com/S3ler/arduino-mqtt-sn-client/issues/3

            Source https://stackoverflow.com/questions/59039420

            QUESTION

            NodeMCU (ESP8266) Exception 28 when connecting to MQTT broker
            Asked 2019-Mar-15 at 18:08

            I am using a NodeMCU (ESP8266) as a WiFi client to connect to an MQTT broker run on my computer. Using this setup in Windows using WSL (Ubuntu), the MQTT broker seems to work perfectly fine. The ESP8266, however, throws an error in the Serial console immediately when it attempts connect to the MQTT server. WiFi connects without incident.

            Please find below a working example of my code:

            ...

            ANSWER

            Answered 2019-Mar-15 at 17:37

            You're missing some setup on the MQTT client. Unfortunately, this MQTT library isn't clever enough to notice you didn't set a server name and crashes when you call connect() without it being fully set up.

            You need a call to the begin() method before you call connect().

            Try rewriting your connect() function like this:

            Source https://stackoverflow.com/questions/55176201

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install arduino-mqtt

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/256dpi/arduino-mqtt.git

          • CLI

            gh repo clone 256dpi/arduino-mqtt

          • sshUrl

            git@github.com:256dpi/arduino-mqtt.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link