Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
How to configure "Automapping settings" for the MQTT Thing?
The online help is telling this:
Automapping Settings |
---|
The format for the automapping settings controls whether you want to publish and/or subscribe, what the “topic” name that corresponds to the property name is, and whether you want ThingWorx to automatically generate topic name(s) based on a pattern that can include server name, thing name, and property name token(s). |
The "Automapping format" setting has a default value of "/Thingworx/{s}/{t}/{p}".
Are anyone able to give an example on how configure and use this functionality?
I use the following configuration:
wwx/bca/ps/sjw/{p}
Where p substitutes the property name. The default pattern:
/Thingworx/{s}/{t}/{p}
Will look like this.
The attached files will create a Demo MQTT subscriber and connection to test.mosquitto.org
Notice the double // in the topic:
I think that this is caused by using /Thingworx/{t}/{s}/{p} and I recommend you use /Thingworx/{t}/{p} to get the topic to be /Thingworx/Demo002/prop01.