Reply To: REST HowTo? 2017-12-21T07:02:50+00:00

HOME Forums Gateways Raspberry Pi REST HowTo? Reply To: REST HowTo?

Post count: 22


so continuing along, I expect the next simplest command would be:

curl http://MyGateway:MyPort/devices -XGET

which returns:

{ "action" : "get", "args" : null, "error" : "Not authenticated", "id" : 0, "objs" : [ "devices" ], "session_id" : "" }

and the log also shows this as connecting and parsing more or less as I would expect:

ZBPServer[1156]: Incoming connection.
ZBPServer[1156]: Scheduler:: socket added
ZBPServer[1156]: http_parser:: GET /devices
but then…
ZBPServer[1156]: Scheduler:: socket removed

I tried this both from a LAN device on the same network and on the local host – same result