One problem we had from the first was it could not connect to the broker. We finally traced it down to something wrong in the password field under user credentials under MQTT settings in the device driver. When we enter the password field when you hit the first key you will hear a ding from the computer speakers and then the next key you were going to type will show up (imagine password showing up as assword). if we back space out the box it will only allow us to type 1 character in the box then not accept any more keys. If you select the box and hit delete key, you are back to the first character being a ding from the speaters. if you only backspace out the first character that was seen in the box (the a key from the above example) then type the full phrase password, it will all show up but not be accepted by the broker. If we turn off authentication on the broker then IWS has no issue connecting.
Next question I have has to do with using RAW vs JSON data. We are not sure in IWS MQTT what we should use? JSON sends the data in specific formatted packets as string data and you can clearly see the data but we cannot find any way of decoding the tag data to get the values. Should we be using the RAW mode from our publisher/broker equipment instead?
I have attached our project file with all the necessary settings so you should be able to run it and it will connect to our test broker with a topic of gpstest which is published every second.
Thanks,
Mike McClanahan
Global Production Solutions
405-306-1426
:)