Can the MQTT binding handle two instances of clients?

Does anyone know if the 1.x MQTT binding can handle two instances of MQTT clients?
I am running OpenHab 1.8 still.

I am using the public MQTT-broker at and sensor values arrive from two different physical locations in two separate channels with different login credentials. So ideally I would like to define two MQTT clients like this in openhab.cfg

# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883

# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.

# Optional. User id to authenticate with the broker.

# Optional. Password to authenticate with the broker.

I could then have the various items get values from either of the two channels. Would that be possible?

Short answer: Yes :smile:

I have a very similiar setup on my home installation, one internal mosquitto instance, another for a very specific IoT device that only talks to their own MQTT server…

@hakan Thank you for the quick and positive reply! I tried it this morning and it works perfectly! Now I can handle measurements from two MQTT brokers in OpenHab.