Skip to content
Eclipse Leshan is an OMA Lightweight M2M (LWM2M) implementation in Java.
Java JavaScript HTML Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
eclipse Remove unnecessary casts and warn about them Feb 3, 2017
leshan-bsserver-demo Remove "impl" package in leshan-server-cf Oct 29, 2019
leshan-client-cf Shutdown async observer thread on destroy. Nov 15, 2019
leshan-client-core Refactoring clean packages in leshan-client-core Oct 29, 2019
leshan-client-demo #747: fix dead lock in leshan-client-demo Oct 8, 2019
leshan-core-cf Shutdown async observer thread on destroy. Nov 15, 2019
leshan-core Add more javadocs to leshan-server-*. Nov 15, 2019
leshan-integration-tests Remove "impl" package in leshan-client-cf Oct 29, 2019
leshan-server-cf Shutdown presence service schedulor on destroy. Nov 15, 2019
leshan-server-core Shutdown presence service schedulor on destroy. Nov 15, 2019
leshan-server-demo #707: Remove JSON format for object model definition Oct 29, 2019
leshan-server-redis Fix start/stop RegistrationStore issue. Nov 15, 2019
.gitignore Added OPAQUE text encoding/decoding, using base64 Apr 9, 2019
CONTRIBUTING.md Link CONTRIBUTING.md to the "How to contribute" wiki page. Nov 22, 2017
LICENSE-edl-v1.0.md Add LICENSE file for github Nov 23, 2017
LICENSE.epl-v1.0.md Add LICENSE file for github Nov 23, 2017
README.md Update README: use new sandbox URL : leshan.eclipseprojects.io Apr 2, 2019
SECURITY.md Add Security policy (SECURITY.md) Sep 18, 2019
about.html Initial contribution Feb 7, 2015
jar-with-dependencies-with-logback.xml #473: Include logback.xml in jar as default config for demo Mar 1, 2018
notice.html Initial contribution Feb 7, 2015
pom.xml Integration of Californium 2.0.0-RC1 Nov 7, 2019

README.md

Build Status

Leshan

Eclipse Leshan™ is an OMA Lightweight M2M server and client Java implementation.

What is OMA LWM2M ?
The specification.
Object and Resource Registry.

Leshan provides libraries which help people to develop their own Lightweight M2M server and client.
The project also provides a client, a server and a bootstrap server demonstration as an example of the Leshan API and for testing purpose.

Here you can see which part of the specification is currently covered by Leshan.

The Leshan Documentation is available in our wiki 📘.

Contact

Join the project mailing list : subscribe.
Mail address: leshan-dev@eclipse.org.
Access to leshan-dev archives.

Test Server Sandbox

You can try live our servers demos instances:

(Automatic deployment of master branch)

Leshan

Test Leshan Demos locally

Get and run the last binary of our demo server :

wget https://hudson.eclipse.org/leshan/job/leshan/lastSuccessfulBuild/artifact/leshan-server-demo.jar
java -jar ./leshan-server-demo.jar

Get and run the last binary of our demo client :

wget https://hudson.eclipse.org/leshan/job/leshan/lastSuccessfulBuild/artifact/leshan-client-demo.jar
java -jar ./leshan-client-demo.jar

Get and run the last binary of our bootstrap demo server :

wget https://hudson.eclipse.org/leshan/job/leshan/lastSuccessfulBuild/artifact/leshan-bsserver-demo.jar
java -jar ./leshan-bsserver-demo.jar

ℹ️ : All the demos have a --help option.

Compile Leshan & Run Demos

Get sources :

#using ssh
git clone git@github.com:eclipse/leshan.git

or

#using https
git clone https://github.com/eclipse/leshan.git

Compile it, by running in leshan root folder :

mvn clean install

Run demo server:

java -jar leshan-server-demo/target/leshan-server-demo-*-SNAPSHOT-jar-with-dependencies.jar 

Connect on Leshan demo UI: http://localhost:8080
Leshan server Demo provides a very simple UI to get the list of connected clients and interact with clients resources.

Now you can register a LWM2M client by running our client demo:

java -jar leshan-client-demo/target/leshan-client-demo-*-SNAPSHOT-jar-with-dependencies.jar 

or trying the Eclipse Wakaama test client.

You can also try our bootstrap demo server:

java -jar leshan-bsserver-demo/target/leshan-bsserver-demo-*-SNAPSHOT-jar-with-dependencies.jar 

Let's start to code !

Now you played a bit with our demo, you should start to code your own server or client using our Getting-started guide.

You can’t perform that action at this time.