Skip to content

jsiloto/iotagent-leshan

Repository files navigation

This is an LWM2M IoTAgent, part of the dojot project. It was written in java and uses Eclipse Leshan as base for LWM2M handling.

The purpose of this module is to translate device configurations sent to dojot via device-manager into LWM2M configuration and commands.

OMA-LWM2M vs and Device Manager Model:

Dojot and LwM2M have different device and connection models. For starters, while dojot's device registration is a role of the user, in LwM2M the connection is initiated by the device.

To accomodate these diferences a minimum configuration is expected of each device. It should provide resources 3/0/1 and 3/0/2, and use the following template:

A fuller explanation is available at the modeling docs.

Running

The IoTAgent is a highly connected component inside the dojot ecosystem, proper usage requires the dojot environment up and running. For an in depth guide of running dojot check out this link For a quick setup run the provided docker-compose, starting o version X.X.X it should already contain this service:

# Clone and bring up the dojot infrastructure with docker compose
# Be aware this may take a few minutes (or hours depending on your connection)
git clone [email protected]:dojot/docker-compose.git
cd docker-compose
git checkout X.X.X
docker-compose up -d

We also provide a full example to run it yourself here along with a client library and cli.