0

I am trying to enable schedule feature in my android app. I want to make sure if I am in home network or outside network as schedule feature only works in home network (ie the network where hue bridges are connected). What is the best way to check this? I tried using this api "isAccessPointConnected" but it returns true when I am in outside network as well. Can someone help me to figure out the correct way to determine if I am in home network or outside network using any hue api?

dlamblin
  • 43,965
  • 20
  • 101
  • 140
Sushil
  • 8,250
  • 3
  • 39
  • 71

1 Answers1

0

You could do a HTTP request to http://BRIDGE-IP/api/KNOWN-USER/config/ and check the response.

Ron Reuter
  • 1,287
  • 1
  • 8
  • 14