MQTT

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 […]

MQTT

Setting up MQTT Mosquitto broker in Ubuntu Linux

In this article we will see how to setup a Mosquitto broker for implementing MQTT communication. 1. Login to Ubuntu Linux with root privileges ( sudo ) 2. Add the mosquitto repository by given below commands 3. Execute the given below command to install the Mosquitto broker package 4. Install Mosquitto developer libraries to develop […]