Материал из Module developer
SubDevice.removeCondition()
to remove Condition of the subdevice
Syntax
Module.getSubDevice(name).removeCondition(Condition)
| input | sample | description |
| name | "MySubDevice" | type: string the subdevice name in the iRidium project |
| Condition | Condition | type: Object the Condition object |
| output |
| successful or not | type: Boolean successful |
Example:
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);
