/Things/Concentrator/GetAllNodes (extension)
Gets all nodes of a data source on a concentrator in the network, optionally filtering the list by providing one or multiple types from which the nodes need to inherit.
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Things.Concentrator.GetAllNodes(JID,Language,Parameters,Messages,SourceId,OnlyIfDerivedFrom[,DeviceToken[,ServiceToken[,UserToken]]]);
Input Arguments
| Parameter | Description |
|---|---|
JID |
JID of the concentrator. If a Bare JID, the function will attempt to get the Full JID before performing the query. |
Language |
The ISO Language code to use when returning localized strings. |
Parameters |
If node parameter information should be included in the response. |
Messages |
If messages logged on the node should be included in the response. |
SourceId |
Source ID of the data source on the concentrator. |
SourceId |
Source ID of the data source on the concentrator. |
OnlyIfDerivedFrom |
Type name, or array of type names, from which the nodes return need to inherit. Can be null, or the empty array. |
ServiceToken |
Optional service token(s) (delimited by space characters), identifying the service(s) where a distributed transaction originated. |
UserToken |
Optional user token(s) (delimited by space characters), identifying the user(s) where a distributed transaction originated. |
Note: To send an information query to a connected device, you need its Full JID. If you provide a Bare JID, the library call will attempt to get the Full JID for you. To avoid such call each time you need to make such a call, you can get the Full JID yourself, by calling await AgentAPI.Things.XmppHelper.GetFullJid(JID). To be able to get the Full JID, you need to have an approved presence subscription to the device’s Bare JID. To send a presence subscription call AgentAPI.Xmpp.SendPresenceSubscription.
Response
The response will be an array of report object references.