https://github.com/zunjae/upnpdiscovery
Discover UPnP thingies from your Android device
https://github.com/zunjae/upnpdiscovery
Last synced: about 1 year ago
JSON representation
Discover UPnP thingies from your Android device
- Host: GitHub
- URL: https://github.com/zunjae/upnpdiscovery
- Owner: zunjae
- Created: 2019-08-09T13:36:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T07:31:00.000Z (over 6 years ago)
- Last Synced: 2025-03-11T15:16:23.255Z (about 1 year ago)
- Language: Kotlin
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UPnPDiscovery
I legit don't know what I am doing but this works. Based off https://github.com/berndverst/android-ssdp/blob/master/app/src/main/java/ly/readon/android_ssdp/UPnPDiscovery.java
## Usage
```kotlin
val detector = UPnPDiscovery()
when (val result = detector.detect()) {
is UPnPDetectorResult.Success -> {
result.addresses
}
is UPnPDetectorResult.NoResults -> {
print("No results found")
}
is UPnPDetectorResult.FatalError -> {
print("Exception: ${result.exception.message}")
}
}
```
## License
This library is available under the MIT license, though there is no need to include a license and copyright notice