... | ... | @@ -185,20 +185,19 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn |
|
|
* If you have written your own resources before: GET them
|
|
|
* GET the `/.well-known/core` resource (it is generated automatically by the server)
|
|
|
* GET the `/.well-known/core` resource using multicast (aka. Multicast Discovery)
|
|
|
* Multicast Adresses:
|
|
|
* Multicast Adresses and add a token to identify resposes on multicast request
|
|
|
|
|
|
```
|
|
|
`CoapConstants.COAP_ALL_NODES_IPV4_MC_ADDR`
|
|
|
`CoapConstants.COAP_ALL_NODES_IPV6_LL_MC_ADDR` and
|
|
|
`CoapConstants.COAP_ALL_NODES_IPV6_SL_MC_ADDR`
|
|
|
```
|
|
|
|
|
|
* Add a token to identify resposes on multicast request
|
|
|
```java
|
|
|
// Multicast addresses
|
|
|
// CoapConstants.COAP_ALL_NODES_IPV4_MC_ADDR
|
|
|
// CoapConstants.COAP_ALL_NODES_IPV6_LL_MC_ADDR
|
|
|
// CoapConstants.COAP_ALL_NODES_IPV6_SL_MC_ADDR
|
|
|
|
|
|
// add a (mandatory) token to match outgoing multicast message and incoming unicast messages
|
|
|
request.setToken("MCToken".getBytes());
|
|
|
```
|
|
|
|
|
|
|
|
|
## 6. Task 2: Implementation of a AC control by using the CoAP-observe mechanism
|
|
|

|
|
|
1. Use the eventing mechanism CoAP-Observe
|
... | ... | |