Coder Social home page Coder Social logo

abhishek-srujan / intelligentparkingsystem Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 962 KB

Environment: Leshan Client and Server, LWM2M, Raspberry Pi 2 Sense Hat, Java, JSP, JSON Scope: Implemented Registration and Service Discovery, Reservation service, Sensing, Actuation, Visualization, Billing Service and Update Service for parking spots.

CSS 0.85% HTML 3.13% Java 90.49% Shell 0.05% Python 0.21% Dockerfile 0.03% JavaScript 5.25%

intelligentparkingsystem's Introduction

Build Status

Leshan

Leshan is a OMA Lightweight M2M server and client java implementation.

What is OMA LWM2M ?
The specification.
Introduction to LWM2M.

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

Contact

Join the project mailing list : subscribe.
Mail address: [email protected].
Access to leshan-dev archives.

Test Server Sandbox

You can try live our server demo instance on: http://leshan.eclipse.org/
(Automatic deployment of master branch)

Test Server locally

Get and run the last binary of our demo server :

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

Compile & Run

mvn install
cd leshan-standalone
mvn assembly:assembly -DdescriptorId=jar-with-dependencies

Run:

java -jar target/leshan-standalone-*-SNAPSHOT-jar-with-dependencies.jar 

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

Now you can register a LWM2M client.
You could try the LeshanDevice example, the Eclipse Wakaama test client or script samples of its lua binding [lualwm2m] (https://github.com/sbernard31/lualwm2m).

To build the LeshanDevice example, first compile:

mvn install
cd leshan-client-example
mvn assembly:assembly -DdescriptorId=jar-with-dependencies

Then run, setting the hostname and port of the server:

java -jar target/leshan-client-example-*-SNAPSHOT-jar-with-dependencies.jar localhost 5683

The list of the registered clients: http://localhost:8080/api/clients

Leshan

Code with eclipse

You need to add the M2_REPO to your java classpath variables. To do that you can execute the following command:

mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

An eclipse restart is needed (if you already have it open).

You can also do that inside eclipse: From the menu bar, select Window > Preferences. Select the Java > Build Path > Classpath Variables page.

Now, you need to eclipsify leshan java projects,so run:

mvn eclipse:eclipse

Modules

Leshan-core : commons elements.
Leshan-server-core : server lwm2m logic.
Leshan-server-cf : server implementation based on californium.
Leshan-client-core : client lwm2m logic.
Leshan-client-cf : client implementation based on californium.
Leshan-all : every previous modules in 1 jar.
Leshan-client-example : a sample of client API.
Leshan-standalone : a demo server with a web UI.
Leshan-bs-server : a bootstarp demo server.
Leshan-integration-tests : integration automatic tests.

intelligentparkingsystem's People

Contributors

abhishek-srujan avatar

Watchers

 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.