Skip to content

Commit

Permalink
Extend gateway capabilities, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
valashko committed Sep 14, 2018
1 parent 0a4c93a commit 3562287
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.valashko.xaapi'
version '0.3'
version '0.4'

sourceCompatibility = 1.8

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/valashko/xaapi/device/XiaomiGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ public XiaomiGateway(String ip, String password) throws IOException, XaapiExcept
configureCipher(password);
}

public void configurePassword(String password) throws XaapiException {
configureCipher(password);
}

public Map<String, SlaveDevice> getKnownDevices() {
return knownDevices;
}

private void configureBuiltinDevices() {
builtinLight = new XiaomiGatewayLight();
builtinIlluminationSensor = new XiaomiGatewayIlluminationSensor();
Expand Down

0 comments on commit 3562287

Please sign in to comment.