Hi there.
I´m new here to this forum. So hello to all at first.
Working since 3 weeks now with corona and did a lot of stuff.
Now i have a urgent problem and have no clue how to save it.
It is easy i think. But if you did´n do anything in that topic it is not so easy to understand.
Problem.
A gatway with a special software on it.
This gateway has JSON-RPC plugin for communication.
Handbook is totally not understandable and not really helpfull.
What i found out:
The adress: http://xxx.xxx.xxx.xxx/cgibin/json.cgi?json={“method”: “broadcaston”,
“params”: [1], “id”: 10}
The commands: {“method”: " broadcastoff ", “params”: [1], “id”: 30 }
So i want to send the above 3 commands to the gateway/server via corona.
I did a lot of examples, test programs, reading the JSON documentation and nothing worked.
I did get a respond when sending commands via network request, I also declard the local params and the local headers. Also the networklistner is defined as here:
local function networkListener( event )
local sendInfo = {
[“method”] = “broadcaston”,
[“params”] = “[1]”,
[“id”] = “30”
}
But no command would work. The gateway is not working with that commands.
Is anyone willing to help me in that case?
Thanks a lot.