Incoming URL API request
Jump to navigation
Jump to search
Trigged when NETIO recieves URL API request. Arguments are given in url. Arguments are stored in table event.args
Example
URL: http://192.168.101.139/event?arg1=25&arg2=hello
Argument 1:
- key: arg1
- value: 25
Argument 2:
- key: arg2
- value: hello
Print arguments
-- print all arguments for i, v in pairs(event.args) do logf("%s: %s",tostring(i),tostring(v)) end