MQTT Broker

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

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

Le_Ze

Zdravím.
Se snažim na raspberry 3B
https://www.instructables.com/How-to-Use-MQTT-With-the-Raspberry-Pi-and-ESP8266/

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?
Děkují.


Le_Ze

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 https://mosquitto.org/documentation/authenticat                                                                      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

Le_Ze

A ještě systemctl status mosquitto
https://ibb.co/PG6b987