ICP DAS USA LP-22 Series User Manual page 121

Hide thumbs Also See for LP-22 Series:
Table of Contents

Advertisement

We use LinPAC series devices as both the MQTT client and the MQTT broker, and communicate
through the broker to control the MQ-7255M module, as you can see from the architecture
diagram in Figure 7.3-1, the LP-9x2x module is used as the MQTT client, and the LP-52xx module is
used as the MQTT broker.
You must install the relevant packages discussed below for testing purposes on LinPAC series
modules that are either an MQTT broker or an MQTT client. Before installing the packages, it is
recommended that you use the command 'sudo apt-get update' to upgrade the package lists.
<MQTT broker>
You can deploy the MQTT broker on either a UA-5200 or a LinPAC series module (LP-52xx). If you
need to deploy an MQTT broker on a LinPAC series module, follow the procedure described
below.
Step 1: Use the following command to install the Mosquitto package on the LP-52xx module.
# sudo apt-get install mosquitto
Step 2: Use the following command to verify that the MQTT broker/server is active, as
illustrated in Figure 7.3-2.
# netstat -tnl | grep 1883
Figure 7.3-2. Confirm that the MQTT broker is listening on Port 1883
<MQTT client>
Use the following command to install the Mosquitto-client package on the LinPAC series module
(LP-9x2x).
# sudo apt-get install mosquitto-clients
AM335X-PAC Series User Manual
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved.
version 2.0.1
Page: 121
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents