Admin message
Gitlab Update from 18.6.1 to 18.6.2 runs on 2025-12-17
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 @
e615cd5a
...
...
@@ -141,7 +141,7 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
5.
Print the CoapResponse on the console (already done in our example)
#### 1. Establish a connection to the Server using the ChannelManager (Client.java, FIXME 5-6):
*
A client must implement CoapClient interface
*
A client must implement CoapClient interface
```
java
public
class
Client
implements
CoapClient
{...}
```
...
...
@@ -152,12 +152,12 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
```
#### 2. Create a CoapRequest & add some Options (Client.java, FIXME 7-9):
*
A channel represents a single connection and is used to create and send requests
*
A channel represents a single connection and is used to create and send requests
```
java
Boolean
reliable
=
false
;
CoapRequestCode
reqCode
=
CoapRequestCode
.
GET
;
CoapRequest
request
=
clientChannel
.
createRequest
(
reliable
,
reqCode
);
request
.
setUriPath
(
"/temperature"
);
Boolean
reliable
=
false
;
CoapRequestCode
reqCode
=
CoapRequestCode
.
GET
;
CoapRequest
request
=
clientChannel
.
createRequest
(
reliable
,
reqCode
);
request
.
setUriPath
(
"/temperature"
);
```
#### 3. Send the CoapRequest (Client.java, FIXME 7-9):
...
...
...
...