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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Thingworx service to get gateway name from remote thing

rahul3
5-Regular Member

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

What does you mean on Gateway name?

rahul3
5-Regular Member
(To:CarlesColl)

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

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();
rahul3
5-Regular Member
(To:CarlesColl)

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()

 

 

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

rahul3
5-Regular Member
(To:CarlesColl)

remote biniding 

You should look at GetRemoteMetadata service on the RemoteThing.

Announcements


Top Tags