Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] leshan OSGi integration

Hi all,
 
we implemented a lwm2m-OSGi module which registers a Lwm2mClient as a Service in the OSGi ServiceRegistry. That is, we implemented the ClientRegistry Interface as an OsgiBasedClientRegistry, and a Lwm2mClient.
The Lwm2mClient is a wrapper around the Leshan LW-M2M Client object.
This Lwm2mClient contains the properties for registration at the OSGi Service Registry, with the additional benefit that you always have access to the client.
Also we implemented the ClientRegistryListener which sent a event via OSGi EventAdmin if one of the methods is called.
 
The lwm2m-OSGi module is separated from the Leshan project, using the core project as a dependency. With this approach, the OSGi-module is kept independent from any Leshan source code. Therefore, we can maintain the component ourselves, meaning no conflicts with Leshan, as no code from us needs to be merged. In turn, we will have the job of periodically updating the Leshan dependency to newer versions and will have to make adjustments for any Leshan API changes in the lwm2m-OSGI module.
 
We would gladly make this component available to the Leshan project. Our proposal would be to create a sub-project from the eclipse/leshan project, like eclipse/leshan.osgi
 
Questions or suggestions are welcome.
 
regards
Ingo
 
 

Back to the top