... | ... | @@ -222,11 +222,13 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn |
|
|
request.setUriPath(“/ACControl”);
|
|
|
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
|
|
|
medium 25 <= Temperature < 28
|
|
|
low 21 <= Temperature < 25
|
|
|
off Temperature < 21
|
|
|
off Temperature < 21
|
|
|
```
|
|
|
```java
|
|
|
request.setPayload(“medium”.getBytes());
|
|
|
clientChannel.sendMessage(request);
|
... | ... | |