HOME › Forums › Gateways › Raspberry Pi › REST HowTo? › Reply To: REST HowTo?
Inactive
May 6, 2016 at 2:48 pm
Post count: 22
Thanks,
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
thanks
Jay