0
Beantwoord
IR.GetDevices()
Wouter van der Post 6 jaar geleden
•
bijgewerkt door Vladimir Ovchinnikov (expert) 6 jaar geleden •
6
Is it possible in JS to get all devices in a project, for example with a function like "IR.GetDevices()"?
It could return an array with the device names so I can use "IR.GetDevice(name)" to get properties of each device.
Customer support service by UserEcho
Hello.
var devices = IR.GetDevices();
var name_1 = devices[0].Name;
var name_2 = devices[1].Name;
IR.Log("1 device: " + name_1);
IR.Log("2 device: " + name_2);
Ok, so it already exists, but it's not documented?
https://dev.iridi.com/JS_Handbook/en
Yes.
ok, thanks.
Happy to help.
Documentation added.