Exemplo n.º 1
0
 private void switchPin(String type, Pin pin, Object value) throws IOException {
   publish(topic + type + pin.pinNum() + "/value/set", value);
 }
Exemplo n.º 2
0
 public void switchPin(Pin pin, Object value) throws IOException {
   sendMessage(
       new Message(
           this.topic + typeMap.get(pin.getType()) + pin.pinNum() + "/value/set",
           String.valueOf(value)));
 }
Exemplo n.º 3
0
 private String controlTopic(Pin pin) {
   return topic + "system/listening/" + getType(pin) + pin.pinNum() + "/value/set";
 }