phpMQTT | simple php class to connect/publish/subscribe to a MQTT | Pub Sub library

 by   bluerhinos PHP Version: Current License: Non-SPDX

kandi X-RAY | phpMQTT Summary

kandi X-RAY | phpMQTT Summary

phpMQTT is a PHP library typically used in Messaging, Pub Sub applications. phpMQTT has no bugs, it has no vulnerabilities and it has low support. However phpMQTT has a Non-SPDX License. You can download it from GitHub.

2020 Update I am restarting the project so watch this space. Blue Rhinos Consulting Andrew Milsted | andrew@bluerhinos.co.uk | | @bluerhinos. A simple php class to connect/publish/subscribe to an MQTT broker. Documentation: Coming Soon Source:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              phpMQTT has a low active ecosystem.
              It has 644 star(s) with 419 fork(s). There are 55 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 26 open issues and 64 have been closed. On average issues are closed in 633 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of phpMQTT is current.

            kandi-Quality Quality

              phpMQTT has 0 bugs and 0 code smells.

            kandi-Security Security

              phpMQTT has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              phpMQTT code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              phpMQTT has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              phpMQTT releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.
              phpMQTT saves you 193 person hours of effort in developing the same functionality from scratch.
              It has 477 lines of code, 21 functions and 4 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed phpMQTT and discovered the below as its top functions. This is intended to give you an instant insight into phpMQTT implemented functionality, and help decide if they suit your requirements.
            • Connect to the server
            • Process a command
            • Process a message
            • Publishes content to the socket
            • Subscribes to the socket
            • Read from socket
            • Subscribes to a specific topic .
            • Sets the size of the given length .
            • Prints a string
            • Get the length of a message
            Get all kandi verified functions for this library.

            phpMQTT Key Features

            No Key Features are available at this moment for phpMQTT.

            phpMQTT Examples and Code Snippets

            No Code Snippets are available at this moment for phpMQTT.

            Community Discussions

            Trending Discussions on phpMQTT

            QUESTION

            PHP Serial connection read timeout
            Asked 2021-Dec-05 at 12:15

            I'm trying to figure something out here

            I have a 'sequence' to be executed via a serial port (on an RPI).

            I have an supervisored PHP command in Laravel running that connects to a MQTT broker.

            When I send a message to that broker, the RPI picks it up and processes it. Now, I have a moment in which I wait for user interaction. The issue here is, sometimes the user does not interact with the system and the PI keeps "waiting" for serial data. When a user presses a button, I get serial data, which I can process.

            I tried to use a while (true) {} loop that reads the serial data, but it just stops suddenly. Here is some example code;

            ...

            ANSWER

            Answered 2021-Dec-05 at 12:15

            If you look at the source of lepiaf\SerialPort you'll find it sets the stream in non blocking mode, however the read method does an infinite loop until it finds the separator. This means it will never return unless the separator is received, and depending on your configuration your script will be killed once the php max execution time is reached. Since the library is very simple the better option is to edit the read method adding a timeout parameter. Edit the file "lepiaf/SerialPort/SerialPort.php", scroll down to the read method (line 107) and change it as follows:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install phpMQTT

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            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/bluerhinos/phpMQTT.git

          • CLI

            gh repo clone bluerhinos/phpMQTT

          • sshUrl

            git@github.com:bluerhinos/phpMQTT.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

            Explore Related Topics

            Consider Popular Pub Sub Libraries

            EventBus

            by greenrobot

            kafka

            by apache

            celery

            by celery

            rocketmq

            by apache

            pulsar

            by apache

            Try Top Libraries by bluerhinos

            osgb36

            by bluerhinosPHP

            autoBlogger

            by bluerhinosPHP

            phpOSM

            by bluerhinosPHP

            phpLocation

            by bluerhinosPHP

            unifi-controller-vagrant

            by bluerhinosShell