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

Thingworx service to get gateway name from remote thing

Highlighted
Participant

Thingworx service to get gateway name from remote thing

Hi

 

 I want to get gateway name from which remote things are binded/connected . Is there any service in Thingworx composer which can be used ?

 

 I am using two types of gateway :- IndustrialGateway , SDKGateway 

 

Regards

Rahul 

7 REPLIES 7

Re: Thingworx service to get gateway name from remote thing

What does you mean on Gateway name?

Re: Thingworx service to get gateway name from remote thing

Gateway is thing of any  Thing template of gateway type like IndustrialGateway which binds the remote thing to ingest the data from machine .

Re: Thingworx service to get gateway name from remote thing

I'm not sure if that's what you are searching for, but if IndustrialGateway it's a ThingTemplate you can do a :

 

var gateways = ThingTemplates["IndustrialGateway"].QueryImplementingThings();

Re: Thingworx service to get gateway name from remote thing

Thanks  for reply .

But service you mentioned gives the list of gateways (child remote things of Thing template "IndustrialGateway")  . I want list of remote things which are binded by  these gateways.

 

Ex :

As you said, if "gatewayName" is child  remote thing of  Thing template of "IndustrialGateway". 

 

gatewayName  = ThingTemplates["IndustrialGateway"].QueryImplementingThings(); 

then

I want something as below

remotetihngNames =   gatewayName. serviceName_bindedThings () ;

or 

gatewayname =  Thing[remotetihngNames].serviceName_parent_gateway()

 

 

Re: Thingworx service to get gateway name from remote thing

When you say binded, what does you mean? LocalBinding / RemoteBinding...?

Re: Thingworx service to get gateway name from remote thing

remote biniding 

Re: Thingworx service to get gateway name from remote thing

You should look at GetRemoteMetadata service on the RemoteThing.