Skip to content
GitLab
Explore
Sign in
Admin message
Gitlab Update from 17.11.1 to 17.11.2 runs on 2025-05-14
Changes
Page history
formatting of eclipse import tutorial
authored
May 30, 2017
by
Björn Butzin
Show whitespace changes
Inline
Side-by-side
home.markdown
View page @
58d4412f
...
@@ -108,14 +108,13 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
...
@@ -108,14 +108,13 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
```
```
#### 3. Instantiate a new TemperatureResource (Server.java, FIXME 2):
#### 3. Instantiate a new TemperatureResource (Server.java, FIXME 2):
*
Resources are created like normal objects
and added to the server
*
Resources are created like normal objects
```
java
```
java
CoapResource
resource
=
new
CoapResource
();
CoapResource
resource
=
new
CoapResource
();
```
```
#### 4. Add the TemperatureResource to the ResourceServer (Server.java, FIXME 3):
#### 4. Add the TemperatureResource to the ResourceServer (Server.java, FIXME 3):
*
Resources are created like normal objects and added to the server
```
java
```
java
resourceServer
.
createResource
(
resource
);
resourceServer
.
createResource
(
resource
);
...
...