system.device.listDevices
This function is used in Python Scripting.
Descriptionβ
Returns a dataset of information about each configured device. Each row represents a single device.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.device.listDevices()
Parametersβ
Nothing.
Returnsβ
Dataset - A dataset, where each row represents a device. Contains 4 columns:
- Name
- Enabled
- State
- Driver
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet - Listing Devices Configured on Your Gateway
deviceDataset = system.device.listDevices()
# Assign the deviceDataset to a Power Table. This example assumes
# the Power Table is in the same container as the component that called this script
event.source.parent.getComponent('Power Table').data = deviceDataset