Changes
Page history
formatting of eclipse import tutorial
authored
May 30, 2017
by
Björn Butzin
Hide whitespace changes
Inline
Side-by-side
home.markdown
View page @
ceb3b1eb
...
...
@@ -223,10 +223,10 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
request
.
setContentType
(
CoapMediaType
.
text_plain
);
```
Depending on the received temperature, set the payload to high, medium, low or off
| high | 28 <= Temperature |
| medium | 25 <= Temperature < 28 |
| low | 21 <= Temperature < 25 |
| off | Temperature < 21 |
| high | 28 <= Temperature |
| medium | 25 <= Temperature < 28 |
| low | 21 <= Temperature < 25 |
| off | Temperature < 21 |
```
java
request
.
setPayload
(
“
medium
”
.
getBytes
());
clientChannel
.
sendMessage
(
request
);
...
...
...
...