This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Http Api command to Zennio Getface IP
#9
(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! Smile

Thanks!

BR Even.
Reply


Messages In This Thread
RE: Http Api command to Zennio Getface IP - by Evens - 18.05.2018, 10:40

Forum Jump: