This repository is frozen, as the project is continued at the Eclipse Foundation. The new repositories are also on GitHub and can be found here.
Implements RFC 7252 (CoAP Standard)
Californium is a Java CoAP implementation for IoT Cloud services. Thus, the focus is on scalability and usability instead of resource-efficiency like for embedded devices.
Use mvn clean install
in the Cf root directory to build everything.
Standalone JARs of the examples will be copied to ./run/.
(For convenience they are directly included in the Git repository.)
The artifacts are hosted at Maven Central.
Thus, it is enough to include the dependency on californium
in the pom.xml of your project:
<dependencies>
...
<dependency>
<groupId>ch.ethz.inf.vs</groupId>
<artifactId>californium</artifactId>
<version>0.18.7-final</version>
</dependency>
...
</dependencies>
The project also includes the project files for Eclipse. Make sure to have the following before importing the Californium (Cf) projects:
- Eclipse EGit
- m2e - Maven Integration for Eclipse
- UTF-8 workspace text file encoding (Preferences » General » Workspace)
Then choose [Import... » Git » Projects from Git » Local] to import Californium into Eclipse.
In case you are using plain Eclipse projects without Maven, you also need to clone and import the element-connector and Scandium (Sc) Add these project to [Properties » Java Build Path » Projects].
A test server is running at coap://vs0.inf.ethz.ch:5683/. The root resource responds with its current version. More information can be found at http://vs0.inf.ethz.ch/.
Another interop server with a different implementation can be found at coap://coap.me:5683/. More information can be found at http://coap.me/.