formatting of eclipse import tutorial authored by Björn Butzin's avatar Björn Butzin
...@@ -146,7 +146,7 @@ resourceServer.start(); // equals port = CoapConstants.COAP_DEFAULT_PORT ...@@ -146,7 +146,7 @@ resourceServer.start(); // equals port = CoapConstants.COAP_DEFAULT_PORT
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
```java` ```java
channelManager = BasicCoapChannelManager.getInstance(); channelManager = BasicCoapChannelManager.getInstance();
clientChannel = channelManager.connect(CoapClient client,InetAddress serverIP, int serverPort); clientChannel = channelManager.connect(CoapClient client,InetAddress serverIP, int serverPort);
``` ```
... ...
......