bjoern.butzin created page: home authored by Björn Butzin's avatar Björn Butzin
...@@ -39,7 +39,7 @@ Client Side ...@@ -39,7 +39,7 @@ Client Side
**TemperatureResource:** individual resource, inherits from BasicCoapResource **TemperatureResource:** individual resource, inherits from BasicCoapResource
**BasicCoapResource:** already implemented resource with basic functionality, implements CoapResource (interface) **BasicCoapResource:** already implemented resource with basic functionality, implements CoapResource (interface)
**CoapResource (interface):** describes interfaces that must be supported by each resource. **CoapResource (interface):** describes interfaces that must be supported by each resource.
**CoapResourceServer:** manages a list of resources, enables access of these resources from outside, implements CoapServer (interface) **CoapResourceServer:** manages a list of resources, enables access of these resources from outside, implements CoapServer (interface)
**CoapServer (interface):** describes interfaces that must be supported by a resource server **CoapServer (interface):** describes interfaces that must be supported by a resource server
**ChannelManager:** manages channels **ChannelManager:** manages channels
**Channel:** one channel represents a connection to one client **Channel:** one channel represents a connection to one client
...@@ -63,7 +63,7 @@ Client Side ...@@ -63,7 +63,7 @@ Client Side
## 4. Import of prepared project into Eclipse ## 4. Import of prepared project into Eclipse
You can find the required files in our repository at [file](ws4d/jcoap/tree/master/ws4d-jcoap-handsOn) You can find the required files in our repository at [https://gitlab.amd.e-technik.uni-rostock.de/ws4d/jcoap/tree/master/ws4d-jcoap-handsOn][]
1. File > Import 1. File > Import
2. General > Existing Projects ... 2. General > Existing Projects ...
...@@ -145,7 +145,7 @@ You can find the required files in our repository at [file](ws4d/jcoap/tree/mast ...@@ -145,7 +145,7 @@ You can find the required files in our repository at [file](ws4d/jcoap/tree/mast
* A client must implement CoapClient interface * A client must implement CoapClient interface
`public class Client implements CoapClient {...}` `public class Client implements CoapClient {...}`
* A CoapChannelManager is used to manage different connections and to establish a connection to a server * A CoapChannelManager is used to manage different connections and to establish a connection to a server
`channelManager = BasicCoapChannelManager.getInstance();` `channelManager = BasicCoapChannelManager.getInstance();`
`clientChannel = channelManager.connect(CoapClient client,InetAddress serverIP, int serverPort);` `clientChannel = channelManager.connect(CoapClient client,InetAddress serverIP, int serverPort);`
#### 2. Create a CoapRequest & add some Options (Client.java, FIXME 6-8): #### 2. Create a CoapRequest & add some Options (Client.java, FIXME 6-8):
... ...
......