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.

How to execute json link inside spacelynk
#1
Hi guys,

I have SpaceLynk and I enabled remote service in order to use json, I can execute this "(https://192.168.0.90/scada-remote?m=json...&value=off)" through my network.

But I want to execute this between two spacelynks gateway.

Is there any lua script can help me to achieve that?

because i want to read and write values between two spacelynk gateways in the same network.

Thanks for all

Mohammad
Reply
#2
Why don't use use KNX/IP Routing for local data exchange? It does not require any scripts.

The correct usage via script is this. Change RemotePassword to the actual password.
Code:
http = require('socket.http')
res, err = http.request('https://remote:RemotePassword@192.168.0.90/scada-remote?m=json&r=grp&fn=write&alias=0/0/1&value=true')
log(res, err)

For 1 bit objects valid values are true/false or 1/0.
Reply


Forum Jump: