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 cloudmqtt.com 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 mqtt:ib9openhab1.url=tcp://m21.cloudmqtt.com:21250 mqtt:ib9openhab2.url=tcp://m21.cloudmqtt.com:21150 # Optional. Client id (max 23 chars) to use when connecting to the broker. # If not provided a default one is generated. mqtt:ib9openhab1.clientId=xxxxxxx mqtt:ib9openhab2.clientId=yyyyyyy # Optional. User id to authenticate with the broker. mqtt:ib9openhab1.user=zzzzzzzzz mqtt:ib9openhab2.user=wwwwww # Optional. Password to authenticate with the broker. mqtt:ib9openhab.pwd=nnnnnnnnnn mqtt:ib9openhab.pwd=mmmmmm
I could then have the various items get values from either of the two channels. Would that be possible?