GithubHelp home page GithubHelp logo

shenweiran / ncoap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from okleine/ncoap

0.0 1.0 0.0 7.42 MB

Java implementation of the CoAP protocol using netty

License: BSD 3-Clause "New" or "Revised" License

Java 98.74% CSS 1.26%

ncoap's Introduction

A JAVA implementation of the CoAP

This implementation of the Constrained Application Protocol bases on the asynchronous and event-driven network application framework Netty (thats where the 'n' in nCoAP comes from). The nCoAP framework currently covers

  • the raw protocol (RFC 7252),
  • the observation of CoAP resources (RFC 7641),
  • the blockwise transfer (draft 19),
  • the identification of endpoints with changing IPs (draft 01) , and
  • the CoRE Link Format (RFC 6690).

but without DTLS (i.e. support for the coaps scheme).

Latest SNAPSHOT version (1.8.3-SNAPSHOT)

JavaDoc is available here. The nCoAP project is organized in several maven modules, i.e.,

<groupId>de.uzl.itm</groupId>
<artifactId>ncoap-core</artifactId>

for the raw protocol implementation (including the extensions mentioned above). For CoAP application development this is probably what you want. Note, that for several reasons some interfaces and package names changed since the latest stable version (1.8.2). To use the latest bleeding edge version add the following to your pom.xml:

<repositories>
...
    <repository>
        <id>itm-maven-repository-snapshots</id>
        <name>ITM Maven Snapshots Repository</name>
        <url>https://maven.itm.uni-luebeck.de/repositories/snapshots</url>
    </repository>
...
</repositories>

...

<dependencies>
...
    <dependency>
        <groupId>de.uzl.itm</groupId>
        <artifactId>ncoap-core</artifactId>
        <version>1.8.3-SNAPSHOT</version>
    </dependency>
...
</dependencies>

Examples for Client and Server

The other models, i.e.,

<groupId>de.uzl.itm</groupId>
<artifactId>ncoap-simple-client</artifactId>

and

<groupId>de.uzl.itm</groupId>
<artifactId>ncoap-simple-server</artifactId>

provide simple CoAP applications for both, client and server. There intention is to highlight, how easy it is to write such applications using ncoap.

ncoap's People

Contributors

okleine avatar stefanhueske avatar boldt avatar jiloc avatar master-lincoln avatar martinmine avatar earthling avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.