Changes
Page history
bjoern.butzin created page: home
authored
Sep 08, 2016
by
Björn Butzin
Show whitespace changes
Inline
Side-by-side
home.markdown
View page @
f70dcd8f
...
...
@@ -205,7 +205,7 @@ Temperature < 21 -> off
*
Add the observe-option to your CoAP-GET request (Client.java, TODO 13)
`request.setObserveOption(0);`
*
add a BasicCoapResource to the ResourceServer (Server.java, TODO 14)
resourceServer.createResource(
newBasicCoapResource(“/ACControl”,”off”,CoapMediaType.text_plain));
`
resourceServer.createResource(newBasicCoapResource(“/ACControl”,”off”,CoapMediaType.text_plain));
`
*
send PUT request (Client.java, TODO 15)
`CoapRequest request = clientChannel.createRequest(true, CoapRequestCode.PUT);`
`request.setUriPath(“/ACControl”);`
...
...
...
...