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 @
826085bd
...
...
@@ -104,26 +104,26 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
#### 2. Instantiate a new ResourceServer (Server.java, FIXME 1):
*
Need a CoapResourceServer to maintain resources
```
java
CoapResourceServer
resourceServer
=
new
CoapResourceServer
();
```
java
CoapResourceServer
resourceServer
=
new
CoapResourceServer
();
```
#### 3. Instantiate a new TemperatureResource (Server.java, FIXME 2):
*
Resources are created like normal objects and added to the server
```
java
CoapResource
resource
=
new
CoapResource
();
```
java
CoapResource
resource
=
new
CoapResource
();
```
#### 4. Add the TemperatureResource to the ResourceServer (Server.java, FIXME 3):
*
Resources are created like normal objects and added to the server
```
java
resourceServer
.
createResource
(
resource
);
```
java
resourceServer
.
createResource
(
resource
);
```
#### 5. Run the ResourceServer (Server.java FIXME 4):
```
java
resourceServer
.
start
(
port
);
resourceServer
.
start
();
// equals port = CoapConstants.COAP_DEFAULT_PORT
```
java
resourceServer
.
start
(
port
);
resourceServer
.
start
();
// equals port = CoapConstants.COAP_DEFAULT_PORT
```
*
Run Server: Click on
*[Run » Run]*
in the Menu bar
...
...
...
...