Skip to content
GitLab
Explore
Sign in
Admin message
Gitlab Update from 17.11.1 to 17.11.2 runs on 2025-05-14
Changes
Page history
bjoern.butzin created page: home
authored
Sep 08, 2016
by
Björn Butzin
Hide whitespace changes
Inline
Side-by-side
home.markdown
View page @
f70dcd8f
...
@@ -205,7 +205,7 @@ Temperature < 21 -> off
...
@@ -205,7 +205,7 @@ Temperature < 21 -> off
*
Add the observe-option to your CoAP-GET request (Client.java, TODO 13)
*
Add the observe-option to your CoAP-GET request (Client.java, TODO 13)
`request.setObserveOption(0);`
`request.setObserveOption(0);`
*
add a BasicCoapResource to the ResourceServer (Server.java, TODO 14)
*
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)
*
send PUT request (Client.java, TODO 15)
`CoapRequest request = clientChannel.createRequest(true, CoapRequestCode.PUT);`
`CoapRequest request = clientChannel.createRequest(true, CoapRequestCode.PUT);`
`request.setUriPath(“/ACControl”);`
`request.setUriPath(“/ACControl”);`
...
...