diff --git a/pom.xml b/pom.xml index 47ae385..3316c62 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.polysfactory.glassremote glass-remote - 0.5.0 + 0.6.0 GlassRemote https://github.com/thorikawa/GlassRemote @@ -56,7 +56,7 @@ com.polysfactory.lib.glass.bluetooth glass-bluetooth - 0.1.1 + 0.1.2 diff --git a/src/main/java/com/polysfactory/glassremote/model/GlassConnection.java b/src/main/java/com/polysfactory/glassremote/model/GlassConnection.java index 02b496a..3051bdf 100644 --- a/src/main/java/com/polysfactory/glassremote/model/GlassConnection.java +++ b/src/main/java/com/polysfactory/glassremote/model/GlassConnection.java @@ -231,6 +231,7 @@ public void servicesDiscovered(int transID, ServiceRecord[] servRecord) { glassInfoRequest.requestBatteryLevel = true; glassInfoRequest.requestStorageInfo = true; glassInfoRequest.requestDeviceName = true; + glassInfoRequest.requestSoftwareVersion = true; envelope2.glassInfoRequestC2G = glassInfoRequest; write(envelope2); diff --git a/src/main/java/com/polysfactory/glassremote/ui/MainFrame.java b/src/main/java/com/polysfactory/glassremote/ui/MainFrame.java index 6a47a9d..e005537 100644 --- a/src/main/java/com/polysfactory/glassremote/ui/MainFrame.java +++ b/src/main/java/com/polysfactory/glassremote/ui/MainFrame.java @@ -380,7 +380,9 @@ public void run() { GlassInfoResponse response = envelope.glassInfoResponseG2C; String info = ""; info += "Device name: " + response.deviceName; - info += " Battery: " + response.batteryLevel + "%\n"; + info += " Battery: " + response.batteryLevel + "%"; + info += " Software: " + response.softwareVersion; + info += "\n"; info += "Storage: " + response.externalStorageAvailableBytes + "/" + response.externalStorageTotalBytes + " bytes available"; mInfoPanel.setText(info);