system.device.listDevices() possible return values?

I looked at the documentation, and I see that this function returns:

A dataset, where each row represents a device. Contains four columns: Name , Enabled , State , and Driver .

For the “state” value, I cannot find a list of all the states that could be returned?

Apologies in advance if it’s somewhere and I missed it. Thank you for your help,
Doug

Unfortunately there is not a definitive list - state (or status now, though the column name never changed in that function), is a free-form String value returned by each driver implementation. The values can differ between our own drivers and any third party drivers.

The value in that column should be the same status value you see in the Ignition gateway when viewing the devices, to give you an idea of the variety you might see.

1 Like