DA16200
Wi-Fi MQTT Client Simple Demo
Rev.1.00
Page 4 of 13
Mar, 2022
Step 3. Setup a MQTT Server on PC.
Download Eclipse Mosquitto software that can run on your PC system and install it.The URL of Mosquitto
downloading is show below.
https://mosquitto.org/download/
Here use Mosquitto installed on windows 64-bit system as an example.
Then modify some information in the configuration file.
Find out file of mosquitto.conf and open it.
Search “# listener port-number [ip address/host name/unix socket path]”, add line of “listener 1883” below it, signifying
that the listening port number is 1883.
Search “# allow_anonymous false”, delete “#” to not allow anonymous logins.
Search “# password_file”, change it to “password_file pwfile.example”, setting the file location which involving
account name and log in password.
Then set users name and password. In the installation path, right click mouse when holding down “Shift”, select “Open
PowerShell window here” from the pop-up menu.
Input “./mosquitto_passwd -c pwfile.example admin”. This command is to add an account named admin. Input
password twice to confirm this setting, then the count is created successfully. Here use “Renesas” as the password.