Skip to main content
1-Visitor
March 1, 2019
Question

ThingWorx Connection

  • March 1, 2019
  • 1 reply
  • 10784 views

Hi there,

 

I would like to connect my AR Experience with ThingWorx. I opened ThingWorx by coping my experience service url and added "ThingWorx". Now I can see some Projects and I am able to read the data. I can connect the Data with my AR Experience so I can see the values on my AR application. But i am not able to create a  new Data Shape or edit something. I am not able to write a value in my AR Experince and connect this value with my a variable in thingworx. If I try this there comes the mistake i am not autohrizied. Now my question: Is it possible with the vuforia studio test licence to connect to thingworx and create a variable to read and write with a text widget in my AR Experience? 

I hope you understand my question. Thanks for help!

1 reply

17-Peridot
March 1, 2019

Hello,

 

Yes it is possible to change a value from an Experience to a Thing in ThingWorx Platform.

 

For a better troubleshoting, in ThingWorx Platform, I have created a Service into the Thing.

We can add log message. It is needed to debug with log files.

 

In my example, this Service, receives 2 values from Vuforia Studio, from 2 Widgets.

Vuforia_Studio_binding_to_set_value_in_ThingWorx.png

 

Vuforia_Studio_binding_to_set_value_in_ThingWorx_bis.png

 

ThingWorxComposer_service.png

 

In ThingWorx, to troubleshoot, I use the Monitoring > LOGS > Application, Security and Script menus.

It is very useful to know if the problem is in the javascript code or in Permissions.

By the way, it is possible to test the Service by clicking the Test button.

It is useful too, to exclude a problem with it in javascript source code.

 

Also, I would recommand to test with a dev account in ThingWorx but also with the es-public-access direclty in ThingWorx Composer.

 

About Permissions, in PERMISSIONS > Run Time, for es-public-access user, all Permissions need to be enabled (green dot icon)

More details about Permissions :

https://www.ptc.com/en/support/article?n=CS236180

 

I am sure when executing my customer Service, in ThingWorx Composer with my administrator account ; It worked like a charm.

But in Vuforia Studio, an error was reported in the log in ThingWorx Composer about Permission.

By searching this error message in PTC Technical Support web page, I found an article to enable Permissions for a Resource.

 

If I remember well, it was this article :

https://www.ptc.com/en/support/article?n=CS288931

 

Best regards,

Samuel

mn11-VisitorAuthor
1-Visitor
March 4, 2019

Hi @sdidier 

How can I create a new user named es-public-access if i do not have permission to create a new user? And how do I change the permission if nothing happens if I click on the Button in the picture

 

Thanks for help!

17-Peridot
March 4, 2019

Hello,

 

  • Why do you want ot create a new user es-public-access ?

         If it already exists it is not needed.

 

        To create a new user in ThingWorx Platform, an Administrator account is needed.

        To add permissions to an existing user as es-public-access, an Administrator account is needed also.

       

          In my trial instance, with the Administrator account, I was able to add the Permissions to Things to the existing es-public-access user.

   

          By default, account used to have trial is the adminstrator of the instance.

          I click on the same icon with the lock in your screenshot.

 

  • What is the result when clicking on this button ?

 

Best regards,

Samuel