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

MQTT

Setting up Android Mqtt client (Paho) in Android Studio

We can setup Mqtt client library paho in two ways. A. From binaries B. From Source A. From binaries 1. We need two jar files for setting up the mqtt client library in Android Studio a. Mqtt client library b. Mqtt Service library These library files can be dowloaded from here https://repo.eclipse.org/index.html#welcome 2. Copy the […]