This mod can be realy fun to play with.
Some negative points:
local url = "https://api.github.com/repos/minetest/minetest/releases/latest"
if event.type == "program" then
elseif event.channel == "web" then
digiline_send("led3", "test") --never called
I can't seem to replicate the NIC issue here - your code results in "test" being sent on "led3" just like it should.
Are you perhaps running this on an excessively slow connection that results in the timeout (I think 500ms) being hit?
I used a good wifi.
You said that the timeout is set to 500ms? After looking into the code, it seems the timeout is 5s.
lua_api.txt said the timeout unit is in secondes.
Or is lua_api.txt wrong?
I do remember poking at it a while back and finding that it was actually in tenths of a second for some reason - that was ages ago though, so it may have been fixed by now for all I know.
It seems lua_api.txt is wrong :-)
With my wifi, eh given url takes about 1s to load.
But isn't the NIC suposed to return something if the request timeout?