-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[androiddebugbridge] Added mDNS discovery for Fire TV Stick #256
Conversation
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
editProperties.put(Thing.PROPERTY_FIRMWARE_VERSION, adbConnection.getAndroidVersion()); | ||
editProperties.put(Thing.PROPERTY_VENDOR, adbConnection.getBrand()); | ||
try { | ||
editProperties.put(Thing.PROPERTY_MAC_ADDRESS, adbConnection.getMacAddress()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately the ro.boot.wifimacaddr
property is not available or accessible on all devices but currently it looks like the Mac address is the only unique identifier available in both discovery service implementations.
...thomej/binding/androiddebugbridge/internal/discovery/AndroidDebugBridgeDiscoveryService.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/smarthomej/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Will this also work on openHAB 3.1? Or at least not cause issues? |
Yes, I think but will work in OH 3.1 without any issues. |
.../main/java/org/smarthomej/binding/androiddebugbridge/internal/AndroidDebugBridgeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* Added mDNS discovery for Fire TV Stick * Use getHardwareAddress() from NetworkInterface * mac address always lower case Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Signed-off-by: Christoph Weitkamp github@christophweitkamp.de