Skip to content
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

Merged
merged 4 commits into from
Dec 28, 2021

Conversation

cweitkamp
Copy link
Contributor

  • Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp github@christophweitkamp.de

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());
Copy link
Contributor Author

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.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp changed the title [WIP][androiddebugbridge] Added mDNS discovery for Fire TV Stick [androiddebugbridge] Added mDNS discovery for Fire TV Stick Dec 27, 2021
@J-N-K
Copy link
Member

J-N-K commented Dec 27, 2021

Will this also work on openHAB 3.1? Or at least not cause issues?

@cweitkamp
Copy link
Contributor Author

Yes, I think but will work in OH 3.1 without any issues.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@J-N-K J-N-K merged commit 248242d into smarthomej:3.2.x Dec 28, 2021
J-N-K added a commit that referenced this pull request Dec 28, 2021
* 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>
@cweitkamp cweitkamp deleted the feature-adb-mdns-discovery branch December 28, 2021 14:15
@J-N-K J-N-K added the enhancement New feature or request label Dec 29, 2021
@J-N-K J-N-K added this to the 3.1.9 milestone Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants