cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create network using .net sdk?

SOLVED
Level 7

Is it possible to create network using .net sdk?

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: 

  •    GatewayThing
    • DeviceThing1
    • DeviceThing2  
    • DeviceThing3

This is possible by creating network on the platform. However, is it possible to create network using .net SDK?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Is it possible to create network using .net sdk?

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.

3 REPLIES

Re: Is it possible to create network using .net sdk?

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.

Highlighted

Re: Is it possible to create network using .net sdk?

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.

Re: Is it possible to create network using .net sdk?

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