Function GetRokuLocalIP() As String
print "---GetRokuLocalIP---"
For Each key in m.ips
ipAddress = m.ips[key]
if ipAddress <> invalid and ipAddress.len() > 0 then
return ipAddress
end if
Next
Return ""
End Function
ip = GetRokuLocalIP()
ecp_url = "http://" + ip + ":8060/keypress/Down"
print "ecp_url " ; ecp_url
req = CreateObject("roUrlTransfer")
request.SetUrl(ecp_url)
request.PostFromString("")