Developing PHP client for MQTT using Mosquitto-PHP Library
In this article, we will develop a PHP client for subscribing and publishing messages for MQTT communication using Mosquitto-PHP library available here. 1. Installing pecl 2. Install PHP developer packages 3. Install Mosquitto-PHP library 4. Add extension=mosquitto.so under Dynamic Extensions of the file /etc/php5/cli/php.ini 5. Creating an MQTT subscriber ( sub.php ) using Mosquitto-PHP library […]