iobroker-community-adapters / ioBroker.mqtt-client

Publish and subscribe ioBroker states to MQTT Brokers
MIT License
10 stars 10 forks source link

The mqtt-client adapter seems not to work with a mqtt v3 broker #169

Open pzystorm opened 1 year ago

pzystorm commented 1 year ago

Describe the bug
For me it is not possible to connect the mqtt-client adapter to my current mosquitto broker. It is a version 3 broker so I select the mqtt version 3 in the adapter settings.

# mosquitto -h
mosquitto is an MQTT v3.1 broker.

IP, port and firewall are not an issue. I did some tests with nc on the iobroker instance and it told me the port is open. Other applications are also very fine with the setup.

To Reproduce
Steps to reproduce the behavior:

  1. Install the mqtt-client adapter v1.6.3
  2. Go to the adapter settings and insert IP / Port (1883) and select mqtt version 3
  3. Save and restart the adapter
  4. The adapter will be yellow, not green

Expected behavior
The adapter should switch to green state.

Screenshots & Logfiles
grafik grafik grafik

Versions:

pzystorm commented 1 year ago

Damn... solved :)

grafik

Can you implement that? Maybe the possibility to switch between protocol version 4 and 3 is not enough in the adapter settings of iobroker. Maybe a selector for the mqtt broker version?