Changes between Version 1 and Version 2 of MQTT


Ignore:
Timestamp:
05/27/21 10:26:37 (4 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MQTT

    v1 v2  
    1616[krit@mini MQTT]$
    1717}}}
     18
     19In mosquitto.conf, we put following config
     20{{{
     21[krit@mini MQTT]$ cat mosquitto/config/mosquitto.conf
     22# following two lines required for > v2.0
     23#allow_anonymous true
     24listener 1883
     25persistence true
     26persistence_location /mosquitto/data/
     27log_dest file /mosquitto/log/mosquitto.log
     28
     29allow_anonymous false
     30password_file /mosquitto/config/passwd
     31acl_file /mosquitto/config/acls.conf
     32}}}
     33
     34We create user 'alice' for Mqtt broker with command
     35{{{
     36[krit@mini MQTT]$ mosquitto_passwd ./mosquitto/config/passwd alice
     37}}]