GetDevices

Called to get an array of all Device entries

Function

Array GetDevices()

Parameters

None

Return Value

An array of Device entries. If there are no device in the project, the function will return an empty array.

Example

// Get all devices
var devices = GetDevices();

// Go through each device and log properties
for(var i=0; i$lt;devices.length; i++) { 
    var device = devices[i];
    LogDebug("Device Name = " + device.Name);
    LogDebug("Device Id = " + device.Id);
    LogDebug("Device Config = " + device.Config);
    LogDebug("Device Type = " + device.Type);
}