MQTT Broker

Založil Le_Ze, 02. 04. 2024, 10:19:17

Předchozí téma - Další téma


Se snažim na raspberry 3B

sudo nano /etc/mosquitto/mosquitto.conf

Smazal jsem include_dir /etc/mosquitto/conf.d a vložil listener 1883
Heslo nepotřebují.
raspberrypi3B:~ $ mosquitto_sub -d -t test
Client (null) sending CONNECT
Client (null) received CONNACK (5)
Connection error: Connection Refused: not authorised.
Client (null) sending DISCONNECT

A v logu je
1712045165: New connection from ::1:50616 on port 1883.
1712045165: Client <unknown> disconnected, not authorised.

Netuši někdo, kde muže být problem?


a mosquitto -v
raspberrypi3B:~ $ mosquitto -v
1712051145: mosquitto version 2.0.11 starting
1712051145: Using default config.
1712051145: Starting in local only mode. Connections will only be possible from                                                                       clients running on this machine.
1712051145: Create a configuration file which defines a listener to allow remote                                                                       access.
1712051145: For more details see                                                                      ion-methods/
1712051145: Opening ipv4 listen socket on port 1883.
1712051145: Opening ipv6 listen socket on port 1883.
1712051145: Error: Address already in use
1712051145: mosquitto version 2.0.11 running


A ještě systemctl status mosquitto