Page Tree
Previous Releases
...
Code Block |
---|
string Encrypted_password = T.Library.StringUtilities.ToHex(string <password>); |
The encrypted password will be is a hex character that will be an input is in the .config file. To make sure the Broker knows it is required to decrypt it in order must decrypt the password to check for matches, you must add the ’# ’ symbol before the password.
Code Block |
---|
<add key="UserNameAndPassword1" value="<UserName>;< Password>" /> E.g.: <add key="UserNameAndPassword1" value="test;1234" /> |
...
DisableRetainedFile: The broker stores the last retained message and the corresponding QoS for that topic. The valid value is true or false. The default is false.
ClientID: This parameter can enable limitation for specific MQTT Clients related to For configuring more than one MQTT Client you need to create new whole line changing the last number to the next sequence number.
Code Block |
---|
add key="ClientID1" value="<MQTTClientID>; Topic1=<Topic>, Subscribe1=<True or False>, Publish1=<True or False>" /> |
There are 4 internal parameters:
Publish: flag (true or false) that allows Client the client to publish to a topic (can write messages).
Code Block |
---|
<add key="ClientID1" value="MQTTClientTest;Topic1=*,Subscribe1=True, Publish1=True"/> <add key="ClientID2" value="32443fsa6546fa;Topic1=*,Subscribe1=True, Publish1=False"/> <add key="ClientID3" value="7323rt304343r4;Topic1=*,Subscribe1=False,Publish1=True"/> |
...