0
Отвечен

KNX JS

Yeliz Tarhan 9 лет назад в iRidium Script обновлен Ekaterina (head of support) 9 лет назад 1
Hello,

How can I change the value of the KNX ? (JS,if else)

Examples, IR.GetDevice("KNX IP Router").Set(1,"koltukustu"); --------- doesnt work.



if (IR.GetDevice("KNX IP Router").Set(1,"koltukustu"))
{
IR.Exit; ------------------doesnt work
}



help me,please.. Thanks.
Отвечен
Hello

It's a command, you cannot use it as a condition. Please see the description of Set instruction.

IR.GetDevice(<driver>).Set(<command name>, <value>);
for example
IR.GetDevice("KNX IP Router").Set("koltukustu", 1);

Сервис поддержки клиентов работает на платформе UserEcho