Last active
January 28, 2017 20:45
-
-
Save sergiocasero/5622801c0d349607cdc8afb2378a6ae0 to your computer and use it in GitHub Desktop.
Models
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
// Uploading relays | |
try { | |
for (Relay relay : relays) { | |
RelayDto relayDto = new RelayDto(relay.getLabel(), relay.getGpio().getValue()); | |
relayReference.child(relay.getId()).setValue(relayDto); | |
} | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment