loopback_users = none
log.file.level = debug
auth_mechanisms.1 = EXTERNAL
auth_mechanisms.2 = PLAIN
auth_mechanisms.3 = AMQPLAIN
ssl_options.certfile = /path/folder//mqtt-client-cert-example/tls-gen/basic/result/server_certificate.pem
ssl_options.keyfile = /path/folder//mqtt-client-cert-example/tls-gen/basic/result/server_key.pem
ssl_options.cacertfile = /path/folder//mqtt-client-cert-example/tls-gen/basic/result/ca_certificate.pem
ssl_options.verify = verify_peer
ssl_options.fail_if_no_peer_cert = true
ssl_cert_login_from = common_name
listeners.tcp.default = 5672
listeners.ssl.default = 5671
mqtt.listeners.tcp.default = 1883
mqtt.listeners.ssl.default = 8883
mqtt.ssl_cert_login = true
mqtt.allow_anonymous = true
management.tcp.port = 15672
management.ssl.port = 15671
management.ssl.certfile = /path/folder//mqtt-client-cert-example/tls-gen/basic/result/server_certificate.pem
management.ssl.keyfile = /path/folder//mqtt-client-cert-example/tls-gen/basic/result/server_key.pem
management.ssl.cacertfile = /path/folder//mqtt-client-cert-example/tls-gen/basic/result/ca_certificate.pem
mqtt in a nutshell
quickguides/python-mqtt/README.MD at main · spawnmarvel/quickguides · GitHub
Example
run_pub_sensor1.py
Publish
* myhome/livingroom/temperature/sensor1
RabbitMQ subscribe to:
* myhome.livingroom.#
* myhome.livingroom.temperature.#
* myhome.livingroom.temperature.sensor1.
RabbitMQ queue
Message
Python
March 21, 2023 · 24 min read