... | ... | @@ -185,7 +185,6 @@ 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 and add a token to identify resposes on multicast request
|
|
|
|
|
|
```java
|
|
|
// Multicast addresses
|
... | ... | @@ -193,7 +192,7 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn |
|
|
// 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
|
|
|
// On Multicast: add token to match multicast request and unicast responses
|
|
|
request.setToken("MCToken".getBytes());
|
|
|
```
|
|
|
|
... | ... | |