Created
January 28, 2017 20:52
-
-
Save sergiocasero/cd0b6388d1645b970deba8ba62758f63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void switchRelay(String key, Boolean value) { | |
try { | |
for (Relay relay : relays) { | |
if (relay.getId().equals(key)) { | |
relay.getGpio().setValue(value); | |
} | |
} | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
view.showConnectionInformation(relays); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment