- From: Melvin Carvalho <melvincarvalho@gmail.com>
- Date: Tue, 2 Jun 2015 23:11:07 +0200
- To: David Janes <davidjanes@davidjanes.com>
- Cc: public-web-of-things@w3.org
Received on Tuesday, 2 June 2015 21:11:35 UTC
On 2 June 2015 at 21:02, David Janes <davidjanes@davidjanes.com> wrote:
> I'm playing with the github project. So I do:
>
> GET http://localhost:8888/wot/http://localhost:8888/wot/switch12
> {"@properties":{"on":{"type":"boolean","writeable":true}}}
>
> How do I get what the current state of the switch is? How do I turn the
> switch on or off?
>
You may be interested in :
https://github.com/linkeddata/SoLiD
What I would do is use HTTP GET to get the state of a switch identified by
a URI, and serialized using RDF.
I would use PUT, POST or PATCH to toggle the state of a switch.
An HTTP response header can guide you to the place to send the next request
>
> D.
>
>
Received on Tuesday, 2 June 2015 21:11:35 UTC