### 1. Use the eventing mechanism CoAP-Observe (Server.java, TODO 10):
### 1. Use the eventing mechanism CoAP-Observe (Server.java, TODO 3.1):
* Mark the TemperatureResource as observable
```java
resource.setObservable(true);
```
### 2. Let server notify clients every 5 s about changed TemperatureResource (Server.java, TODO 11):
### 2. Let server notify clients every 5 s about changed TemperatureResource (Server.java, TODO 3.2):
* indicate a change for resource every 5 seconds
```java
...
...
@@ -223,19 +223,19 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
resource.changed();// Notify
}
```
### 3. Implement an Air Conditioner Resource with the path `/ACControl`, that can be set to `high`, `medium`, `low` or `off` (Client.java & Server.java, TODO 12-15):
* Change exitAfterResponse to false (Client.java, TODO 12)
* Add the observe-option to your CoAP-GET request (Client.java, TODO 13)
### 3. Implement an Air Conditioner Resource with the path `/ACControl`, that can be set to `high`, `medium`, `low` or `off` (Client.java & Server.java, TODO 4.1 - 5.2):
* Change exitAfterResponse to false (Client.java, TODO 4.1)
* Add the observe-option to your CoAP-GET request (Client.java, TODO 4.2)
```java
request.setObserveOption(0);
```
* add a BasicCoapResource to the ResourceServer (Server.java, TODO 14)
* add a BasicCoapResource to the ResourceServer (Server.java, TODO 5.1)