Forum Discussion

breger's avatar
breger
Visitor
13 years ago

Network Status

Is there a quick way to determine if a Roku box is connected to the network? My channel needs to get a response from a website open startup. I'd like to have the channel report immediatedly that the network is down and can't continue rather than waiting on a response that will never come.

Thanks

5 Replies

  • You can call roDeviceInfo.GetLinkStatus(). I notice this is not currently documented; I will add it to the doc soon.

    --Mark
  • "RokuMarkn" wrote:
    You can call roDeviceInfo.GetLinkStatus(). I notice this is not currently documented; I will add it to the doc soon.

    --Mark

    Does that return a boolean or are there more status codes?
  • It returns Boolean. There is also an associated roDeviceInfoEvent that you can enable to receive notification when the link status changes. This is now documented.

    --Mark