Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Client not authorised after adding websocket listener(Client not authorised after adding websocket listener)
Client not authorised after adding websocket listener [message #1863617] Fri, 16 February 2024 09:39 Go to next message
Julien Durand is currently offline Julien DurandFriend
Messages: 2
Registered: February 2024
Junior Member
Hi Mosquitto Community,
I have a mosquitto broker v 2.0.18 running on Windows and a few esp32 devices connecting to it using the openMqtt gateway and the mqtt protocol on port 1883. Authentication is enabled (allow_anonymous false and per_listener_settings true). All working well. Today I want to configure the broker so that it accepts websocket connections on port 9001. I have changed the mosquitto.conf as below :

listener 1883 0.0.0.0
protocol mqtt
listener 9001 0.0.0.0
protocol websockets


1708075318: mosquitto version 2.0.18 starting
1708075318: Config loaded from mosquitto.conf.
1708075318: Opening ipv4 listen socket on port 1883.
1708075318: Opening websockets listen socket on port 9001.
1708075318: mosquitto version 2.0.18 running

Since this update, my esp32 devices are not able to connect anymore this is what I get:

1708076252: New connection from 192.168.1.2:55999 on port 1883.
1708076255: Sending CONNACK to ESP32-GARAGE (0, 5)
1708076255: Client ESP32-GARAGE disconnected, not authorised.

Any idea why ?
Re: Client not authorised after adding websocket listener [message #1863647 is a reply to message #1863617] Sun, 18 February 2024 08:35 Go to previous message
Julien Durand is currently offline Julien DurandFriend
Messages: 2
Registered: February 2024
Junior Member
Solved it myself. Just needed to add the allow_anonymous and password_file options on each listener.
Previous Topic:mqtt bridge reconnects every two minutes with a server broker
Next Topic:client connection
Goto Forum:
  


Current Time: Thu May 02 18:18:08 GMT 2024

Powered by FUDForum. Page generated in 0.02839 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top