... | ... | @@ -93,11 +93,11 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn |
|
|
* PUT, POST and DELETE are not used
|
|
|
* ->So we implemented `TemperatureResource` which extends `BasicCoapResource` with:
|
|
|
* A constructor to initialize the resource and disallow POST, PUT and DELETE requests and
|
|
|
* Two get() methods:
|
|
|
```java
|
|
|
* Two get() methods:
|
|
|
```java
|
|
|
CoapData get(List<CoapMediaType> mediaTypesAccepted);
|
|
|
CoapData get(List<String> query, List<CoapMediaType> mediaTypesAccepted);
|
|
|
```
|
|
|
```
|
|
|
|
|
|
#### 2. Instantiate a new ResourceServer (Server.java, FIXME 1):
|
|
|
* Need a CoapResourceServer to maintain resources
|
... | ... | |