Hallo an alle,
als erste sorry falls ich etwas nicht richtig mache, bin neu im Forum.
Mein Problem ist, das ich keine Verbindung von meinem ESP8266 zum Mosquitto Broker auf meinem Raspberry pi zero wh aufbauen kann.
Auf meinen pi zero läuft der mqtt broker und node red.
Mit node red kann ich mich ohne Probleme zum broker verbinden.
Hab auch die Verbindung mittels mosquitto_sub und mosquitto_pub geprüft und es funktioniert.
Wenn ich aber meinen ESP8266 zum Broker verbinden will kommt immer der rc=-2 Fehler.
Ich hab auch schon das config file geändert und dort
listener 1883 0.0.0.0
allow_anonymous true
ganz oben hinzugefügt
Hier mein config file:
# 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
listener 1883 0.0.0.0
allow_anonymous true
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
Wenn ich dann aber mosquitto -v abfrage kommt beim log weiterhin, dass nur local only mode aktiviert ist.
Auch das die adresse bereits verwendet wird obwohl nichts läuft bzw verbunden ist.
Jemand eine Idee was ich falsch mache bzw. wie ich das Lösen könnte?
Hier der Log von mosauitto -v
1641391000: mosquitto version 2.0.11 starting
1641391000: Using default config.
1641391000: Starting in local only mode. Connections will only be possible from clients running on this machine.
1641391000: Create a configuration file which defines a listener to allow remote access.
1641391000: For more details see https://mosquitto.org/documentation/authentication-methods/
1641391000: Opening ipv4 listen socket on port 1883.
1641391000: Error: Address already in use
1641391000: Opening ipv6 listen socket on port 1883.
1641391000: Error: Address already in use
danke schön mal für eure Hilfe und schönen Tag
mfg