Dear experts,
I'm trying to do an HTTP call from LUA, to retrieve the external IP address. However, it is obvious that I need to wait for the response, but have not been able to find out exactly where to do this. Here is my code:
function myPublicIP(str)
fibaro:debug("A")
str = "https://api.ipify.org/?format=json"
local http = net.HTTPClient()
fibaro:debug("B")
http:request(str, {
success = function(status)
fibaro:debu