Example #1
0
 @Override
 public long switchAnalogPin(AnalogPin analogPin, int value) throws IOException {
   switchPin(ANALOG, analogPin, value);
   return MessageIdHolders.NO_ID.getId();
 }
Example #2
0
 @Override
 public long switchDigitalPin(DigitalPin digitalPin, boolean value) throws IOException {
   switchPin(DIGITAL, digitalPin, value);
   return MessageIdHolders.NO_ID.getId();
 }
Example #3
0
 @Override
 public long stopListening(Pin pin) throws IOException {
   publish(controlTopic(pin), FALSE);
   return MessageIdHolders.NO_ID.getId();
 }