formatting of eclipse import tutorial authored by Björn Butzin's avatar Björn Butzin
...@@ -222,11 +222,11 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn ...@@ -222,11 +222,11 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
request.setUriPath(“/ACControl”); request.setUriPath(“/ACControl”);
request.setContentType(CoapMediaType.text_plain); request.setContentType(CoapMediaType.text_plain);
``` ```
Depending on the received temperature, set the payload to high, medium, low or off Depending on the received temperature, set the payload to high, medium, low or off
| high | 28 <= Temperature | high 28 <= Temperature
| medium | 25 <= Temperature < 28 | medium 25 <= Temperature < 28
| low | 21 <= Temperature < 25 | low 21 <= Temperature < 25
| off | Temperature < 21 | off Temperature < 21
```java ```java
request.setPayload(“medium”.getBytes()); request.setPayload(“medium”.getBytes());
clientChannel.sendMessage(request); clientChannel.sendMessage(request);
... ...
......