Closed nedoskiv closed 1 year ago
IT was configuration problem, here is my next config that solves the problem:
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
per_listener_settings true
listener 1883
allow_anonymous false
#password_file /web/izvestitel.com/mqtt/credentials
password_file /etc/mosquitto/passwords
#include_dir /etc/mosquitto/conf.d
Hello, I just started using mosquitto broker. Testing some command line parameters and some PHP functionalites. Decided to add authentication. Here is my config file:
mosquitto_pub now do not connect unless I use proper credentials. PHP on the other side connect and work without any credentials ..... here is the simple script:
It works like a charm. Receiving all messages without authentication ........
mosquitto version 2.0.15 on UBUNTU