Skip to content

Commit

Permalink
Migrate from nupnp API to discover API
Browse files Browse the repository at this point in the history
Apparently Hue shut down their nupnp API in favor of a discover API.
This migrates the URL's and has no change in functionality.
  • Loading branch information
ReneeVandervelde committed Sep 12, 2020
1 parent dc991b7 commit ad44e74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change Log
==========

1.1.2
-----

### Fixed:

- Migrate Discover functionality from old nupnp to new endpoint (discover.meethue.com)

1.1.1
-----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface BridgeDiscovery {
/**
* Get Bridges reported on the network.
*/
@GET("nupnp")
@GET(".")
suspend fun getDevices(): List<Device>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import retrofit2.converter.moshi.MoshiConverterFactory
class DiscoverModule {
fun createDiscoverclient(
client: OkHttpClient,
apiUrl: String = "https://www.meethue.com/api/"
apiUrl: String = "https://discovery.meethue.com/"
): BridgeDiscovery {
return Retrofit.Builder()
.client(client)
Expand Down

0 comments on commit ad44e74

Please sign in to comment.