added ability to send 2 ...x pins at once
can be set in menu, action or script:
- Code: Select all
plug = indigo.server.getPlugin("com.karlwachs.arduino")
# set s0 to 123 and s1 to 987 and send both at the same time to the megaWifi device
plug.executeAction("setPins",
props={
"device" :"1780896723" # or device name
,"pin": "s0" #
,"CMD": "analogWrite"
,"aValue":"123"
,"sendORset":"setOnly"
}
)
plug.executeAction("setPins",
props={
"device" :"1780896723" # or device name
,"pin": "S1" #
,"CMD": "analogWrite"
,"aValue":"987"
,"sendORset":"setOnly"
}
)
plug.executeAction("sendPins",
props={
"device" :"megawifi" # or device id
,"pinsToBeSend": "s0,s1" #
}
)