I am new with Openremote and i dont know how to use Websocket Agent. We have right now all device connecting over MQTT to our EMQX Broker. Now i Enabled on Emqx the websocket. Over the MQTT Explorer i can connect without problem.
ws://111.11.111.111:8083/mqtt
user: user
Password: password
Before to use MQTT Service on OpenRemote i like to test over Websocket but i dont have any ide how to connect to my Websocket.
I create a websocket Agent
Hi,
Try adding the attribute “Username password”. Create the attributes to get the data, add them the agent link, add message match predicate and the subscription.
e.g.:
Thank you for your advise. This is exactly what i am looking for. I was not ever that with Openremote you can connect with external MQTT Broker.
Rich I mention on my email i am new on Openremote. If i like to connect over an MQTT agent to external Broker how i do this if my Broker have credentials (User:Password) to connect.
Configuration of agents is done via the attributes of the agent; to add a username and password to an MQTT agent you need modify your agent in the asset viewer to add the well known attribute called Username password:
Click modify in the top right (if you’re already in edit mode then you will already see the save/view buttons)
I’m trying to use my username and password, but the agent status remains stuck on “waiting” and I can’t connect. I’m using an external broker (EMQX running in a Docker container on my computer).
(Note: I’m using port 1884 because port 1883 is already in use on my computer
Note 2: I’ve already set the username and password permissions on my broker, and I can successfully connect using MQTTX and MQTT Explorer with these credentials).
Hey Rich! Sorry for not getting back to you sooner.
YES! I managed to connect to the broker using the username and password, thank you so much!
Honestly, I don’t understand what the problem was, since I didn’t change anything — it just worked on one of my attempts, and luckily I haven’t had that issue again.
Thanks again!