Hi,
My question is related to the branch "add_lwm2m" of Hono. I know this branch is quite outdated but it's the only lwm2m implementation of Hono up to now.
I skimmed through the code of this lwm2m adapter, but I didn't see the "models" folder which contains the lwm2m models like in Leshan project. When I tried to connect a custom lwm2m model (id 3330) to this adapter, the web UI of leshan cannot initiate the instances for my model. But it worked out of the box for latest leshan-client-demo from eclipse leshan (model 3303 by default). I want to ask how I can include the .xml model file into this adapter. I tried to edit the application.yml of lwm2m adapter (in /hono/adapters/lwm2m/src/main/resources/) like this:
leshan:
server:
coapBindAddress: 0.0.0.0
coapPort: 5683
coapsBindAddress: 0.0.0.0
coapsPort: 5684
httpPort: 8090
objectdir: ../models (this is where I point to my model directory containing the 3330.xml, I put this folder in hono directory)
But still the leshan web UI cannot create instances for my model. I tested my model with the leshan-server-demo from eclipse leshan project and it works fine.