pberna
April 27, 2022, 9:31am
1
I’m trying to address and external MQTT broker but is not clear how to configure it
In the MQTT asset configuration is shown the following fields:
Client Id
Host
Port
But are not indicated the user nor the password fields, necessary to access to my broker
Can someone indicate how to to configure and Client Agent that points to and external MQTT broker ?
You have to check username / password when you add the asset. I had the same problem
But didn’t figured out how to go on (I’m trying to connect to TTN/TTI)
pberna
April 27, 2022, 11:35am
3
I don’t see where those username / password are. Can you please send me a snapshot of the menu ?
Denis
April 27, 2022, 2:54pm
4
Hi pberna
i didn’t tried the attribute, but you can add it to the agent.
When you add the mqtt agent:
Or add the attribute to an excisting agent:
1 Like
Don
April 28, 2022, 7:36am
5
Maybe we should set that attribute to be added by default
2 Likes
pberna
April 28, 2022, 12:31pm
6
Yes thank problem solved.
Adding attribuite user name and password and filling in the related edit box with
{"username":"admin","password":"secret"}
created a correct connection to the broker
Now second problem
The OpenRemote MQTT Agent sends to often PING REQ messages to my broker.
How can I trim the update frequency of the Agent ?
2 Likes
Denis
April 28, 2022, 12:48pm
7
Try: Add Attribute PollingMilis
1 Like
pberna
April 28, 2022, 1:55pm
8
Unfortunately it doesn’t work, even if I set the PollingMils to 10000 ms the update time of the PING_REQ messages is always 5-6s. I tried also to set it to 60000, (1 minute) the update rate is always 5-6s