Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi,
I need to create hierarchy of things on thingworx platform where I need to show a gateway as a thing and devices connected to this gateway.
Like:
This is possible by creating network on the platform. However, is it possible to create network using .net SDK?
Solved! Go to Solution.
You can access any of the Thingworx server APIs via the client.invokeService method. If you are in the virtual thing class, you can use the this.getClient() method to get the client, and then invoke the service. In this way you can then use the EntityServices as normal to create the network.
Also, if you are using the EMS, there is a complete reflection of the Thingworx server API provided by the EMS, and you can call the same REST api you would on the server, except to the address of the EMS instead of the server, to achieve the same.
Hello.
I don't think that's part of the functionality of the SDK itself. Looking at how the EMS Gateway works, I just don't see any methods that would accomplish what you're asking, at least as I understand it.
Is there a particular reason you need to do this from the SDK and not within the platform?
Thanks!
-- Craig A.
You can access any of the Thingworx server APIs via the client.invokeService method. If you are in the virtual thing class, you can use the this.getClient() method to get the client, and then invoke the service. In this way you can then use the EntityServices as normal to create the network.
Also, if you are using the EMS, there is a complete reflection of the Thingworx server API provided by the EMS, and you can call the same REST api you would on the server, except to the address of the EMS instead of the server, to achieve the same.
Hi @Shivaji.
If one of the previous responses provided a solution to your problem, please mark it as the Accepted Solution for the benefit of others with similar issues.
Regards.
--Sharon