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:
str = "https://api.ipify.org/?format=json"
local http = net.HTTPClient()
success = function(status)