Skip to main content
1-Visitor
June 27, 2017
Solved

how to connect to thingworx platform and get data using nodejs

  • June 27, 2017
  • 1 reply
  • 4042 views

how to connect to thingworx platform and get data using nodejs

Best answer by AdamR

Dibya,

The simplest mechanism to communicate with nodejs would be to use REST calls.  All Thingworx services and structures are available using REST calls (as long as the appropriate security structures are setup).

The base description of the REST structure can be found here...

http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/index.jspx?id=thingworx1001&action=show

Thanks,

Adam

1 reply

AdamR14-AlexandriteAnswer
14-Alexandrite
June 27, 2017

Dibya,

The simplest mechanism to communicate with nodejs would be to use REST calls.  All Thingworx services and structures are available using REST calls (as long as the appropriate security structures are setup).

The base description of the REST structure can be found here...

http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/index.jspx?id=thingworx1001&action=show

Thanks,

Adam

dmishra1-VisitorAuthor
1-Visitor
June 28, 2017

thanks for the suggestion.

I want to know if the  value of the property of a thing changes how will node know without continuous  polling to the thingworx server?

14-Alexandrite
June 28, 2017

You would need to code a REST call back to the nodejs server inside a data change subscription in the Thingworx Platform.  There are Snippets in our Resouces for ContentLoaderFunctions that structure a rest call from Thingworx code.