Skip to content
GitLab
Explore
Sign in
Admin message
Gitlab Update from 16.11.0 to 16.11.1 runs on 2024-04-29
WS4D
jCoAP
Wiki
Home
Home
· 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 @
c3668b1c
...
@@ -201,11 +201,12 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
...
@@ -201,11 +201,12 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
## 6. Task 2: Implementation of a AC control by using the CoAP-observe mechanism
## 6. Task 2: Implementation of a AC control by using the CoAP-observe mechanism
![
Task 2 - Sequence diagram
](
https://gitlab.amd.e-technik.uni-rostock.de/ws4d/jcoap/raw/master/ws4d-jcoap-handsOn/img/Task2Sequence.png
)
1.
Use the eventing mechanism CoAP-Observe
1.
Use the eventing mechanism CoAP-Observe
2.
Let the server notify clients every 5 seconds about a changed TemperatureResource
2.
Let the server notify clients every 5 seconds about a changed TemperatureResource
3.
Implement an Air Conditioner Resource with the path
`/ACControl`
, that can be set to
`high`
,
`medium`
,
`low`
or
`off`
3.
Implement an Air Conditioner Resource with the path
`/ACControl`
, that can be set to
`high`
,
`medium`
,
`low`
or
`off`
![
Task 2 - Sequence diagram
](
https://gitlab.amd.e-technik.uni-rostock.de/ws4d/jcoap/raw/master/ws4d-jcoap-handsOn/img/Task2Sequence.png
)
### 1. Use the eventing mechanism CoAP-Observe (Server.java, TODO 10):
### 1. Use the eventing mechanism CoAP-Observe (Server.java, TODO 10):
*
Mark the TemperatureResource as observable
*
Mark the TemperatureResource as observable
...
...