(18.05.2018, 09:32)admin Wrote: You access the same URL (http://192.168.1.101/api/io/status) in your browser and check whether input states change or not.
Error checking can be improved like this:
Code:if type(data) == 'table' and type(data.result) == 'table' and type(data.result.ports) == 'table' then
ports = data.result.ports
Hi,
When using the url, i see that all innputs work like they should.
I think the problem is the port number, it doesn`t seem to match the input correctly.
Do you have an idea?
BR Even.
(18.05.2018, 10:40)Evens Wrote:(18.05.2018, 09:32)admin Wrote: You access the same URL (http://192.168.1.101/api/io/status) in your browser and check whether input states change or not.
Error checking can be improved like this:
Code:if type(data) == 'table' and type(data.result) == 'table' and type(data.result.ports) == 'table' then
ports = data.result.ports
Hi,
When using the url, i see that all innputs work like they should.
I think the problem is the port number, it doesn`t seem to match the input correctly.
Do you have an idea?
BR Even.
Correction, i missunderstood.
It works, perfectly!
Thanks!
BR Even.