Concurrent scene limitations

Welcome back. I had started investigating this and not found a problem with luup.call_delay().

Yes, luup.inet.wget() will definitely hang until it receives a response. The new module http_async (which works on both Vera and openLuup) will provide you an HTTP request which does not hang.

Nice! Is it then just for me to modify the inet_wget call in the luup module?

Should be just this:

local async = require "http_async"

-- then somewhere...

async.request ("simple URL", function() end)

ā€¦assuming that youā€™re not interested in the response.

1 Like

Should I try this or wait for a different implementation you are planning?

I suppose the ā€œfunctionā€ here is the luup.inet_wget?

Not planning a different implementation of this module (yet.)

Just replace

luup.inet.wget "whatever URL you want"

with

async.request ("whatever URL you want", function() end)

The function is called later with the returned data, but Iā€™m assuming that you donā€™t care about it.

It seems to work. Thank you! I was just confused by the function in the expression. You are correctā€¦ I do not care for the responseā€¦

That great! Always nice to have a happy user.