Hello, I'm new to Vuforia and Thingworx, so I would appreciate some help with my problem:
I'm trying to get the data from an MQTT-Broker to Vuforia. I've already set up a Thing in Thingworx, which is connected to the MQTT-Broker and I've also created a mapping (subscribed to the topic) and a property with the same name.
The data is being updated automatically in the property, but when I want to use the same data/property in Vuforia Studio (I've added the property from Thingworx to Vuforia Studio as external data), I either have to reload the preview or restart the experience in Vuforia View. At the same time, if I change the value in Thingworx manually, the change is automatically applied in Vuforia Studio/View.
Software:
ThingWorx 9.6.1-b253
Vuforia Studio 9.25.6 (9.25.6.0)
HiveMQ (Free Plan)
Thank you in advance!
Solved! Go to Solution.
Click + on "External Data" in Vuforia (right panel). Search your TWX entity in the list. Select Services tab. Search GetPropertyValues. Click green plus. In right panel, drill down into service, under Configuration, set Auto-Refresh and/or Invoke on Entity Change.
Expand node "current selected item", on the desired property drag/drop to the widget to create the binding.
Try not to use the property but the GetPropertyValues service and set it to Auto-Refresh and/or Invoke on Entity Change.
Bind the property from the service result, under "Currrent selected item".
Hi @Rocko!
Thanks for your reply!
I'm sorry but I'm completely new to this, so I don't really know what/how to do it... ^^'
I'm guessing you want me to use "GetPropertyValues" in Subscriptions in my thing and set the "Auto-refresh" in Vuforia Studio.
I would appreciate it if you could elaborate a bit.
Best regards,
Dan
Click + on "External Data" in Vuforia (right panel). Search your TWX entity in the list. Select Services tab. Search GetPropertyValues. Click green plus. In right panel, drill down into service, under Configuration, set Auto-Refresh and/or Invoke on Entity Change.
Expand node "current selected item", on the desired property drag/drop to the widget to create the binding.
Hi @Rocko!
Thank you very much!
It works now.
I really appreciate your help.
Best regards,
Dan