Материал из Module developer
SubDevice.removeCondition()
удалить Condition у SubDevice
Синтаксис
Module.getSubDevice(name).removeCondition(Condition)
| Название | Пример | Описание |
| name | "MySubDevice" | type: string имя подустройства в проекте iRidium |
| Condition | Condition | type: Object объект Condition |
| На выходе |
| успешность | type: Boolean успешность |
Пример
Module = B.getModule(ModuleID); sub = Module.getSubDevice("MySubDevice"); channelName1 = "GRPS:myChannel" // full channel name for device "GPRS" and his channel "myChannel" myCondition = sub.addCondition({ // create "send_number" Condition ConditionType: "Simple", Type: "send_number", Param: SMSnumber, ChannelName: channelName1, Name: "Send " + SMSnumber, Compare: "eq" }); SubDevice.removeCondition(myCondition);
