Advertisement
boomx

VD http-Call

Oct 28th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local selfId = fibaro:getSelfId();
  2. local selfIp = fibaro:get(selfId, 'IPAddress')
  3. local selfPort = fibaro:get(selfId, 'TCPPort')
  4.  
  5. local httpPath = '/full_status.json'
  6.  
  7. httpData = Net.FHttp(selfIp, selfPort)
  8. response, status, errorCode = httpData:GET(httpPath)
  9. fibaro:debug("Response: "..tostring(response))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement