I knew add_lwm2m breanch is outdated and not priority. But this is the only place I can refer for my lwm2m.
I registered leshan client using “endpoint”: mydevice, “identity”: mypskid, “key” : aabbccdd1)
The following is my registration is hono.
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: 329
{"total":2,"credentials":[{"device-id":"mydevice","type":"hashed-password","auth-id":"sensor2","enabled":true,"secrets":[{"hash-function":"bcrypt","pwd-hash":"$2a$10$51ryuw1mVaQqouGKiZUQzO0nkK.nxaJjMAkj2G19Hweia4tZMfChi"}]},{"device-id":"mydevice","type":"psk","auth-id":"mypskid","enabled":true,"secrets":[{"key":"aabbccdd"}]}]}
11:47:38.826 [main] INFO o.e.h.adapter.lwm2m.LeshanDemoServer - using LwM2mModelProvider: org.eclipse.leshan.server.model.StandardModelProvider
11:47:39.004 [main] INFO o.e.h.c.ConnectionFactoryImpl - connecting to AMQP 1.0 container [
amqp://127.0.0.1:28080]
11:47:39.269 [main] INFO o.e.h.adapter.lwm2m.LeshanDemoServer - using SecurityStore: org.eclipse.hono.adapter.lwm2m.security.HonoBasedSecurityRegistry
11:47:39.282 [main] INFO o.e.h.adapter.lwm2m.LeshanDemoServer - using ServerKeyProvider: org.eclipse.hono.adapter.lwm2m.StaticEccServerKeyProvider
11:47:39.309 [main] INFO o.e.h.adapter.lwm2m.LeshanDemoServer - using CaliforniumRegistrationStore: org.eclipse.leshan.server.californium.impl.InMemoryRegistrationStore
11:47:39.340 [main] DEBUG org.eclipse.hono.client.HonoClient - already trying to connect to Hono server ...
11:47:39.341 [main] DEBUG org.eclipse.hono.client.HonoClient - already trying to connect to Hono server ...
11:47:39.379 [main] INFO o.e.c.c.network.config.NetworkConfig - Loading standard properties from file Californium.properties
11:47:39.464 [main] DEBUG o.e.h.adapter.lwm2m.LeshanDemoServer - adding observation listener: org.eclipse.hono.adapter.lwm2m.observation.TelemetryForwarder@7b4a0aef
11:47:39.465 [main] INFO o.e.californium.core.CoapServer - Starting server
11:47:39.465 [main] INFO o.e.c.core.network.CoapEndpoint - Starting endpoint at /0.0.0.0:5683
11:47:39.472 [main] INFO o.e.c.core.network.CoapEndpoint - Starting endpoint at /0.0.0.0:5684
11:47:39.476 [main] INFO o.e.c.scandium.DTLSConnector - DTLS connector listening on [0.0.0.0/0.0.0.0:5684] with MTU [1,280] using (inbound) datagram buffer size [16,474 bytes]
11:47:39.583 [main] INFO org.eclipse.jetty.util.log - Logging initialized @3260ms
11:47:39.653 [main] INFO o.s.b.c.e.j.JettyEmbeddedServletContainerFactory - Server initialized with port: 8090
11:47:39.654 [main] INFO o.e.h.adapter.lwm2m.LeshanDemoServer - set root context resource base
11:47:39.677 [main] INFO org.eclipse.jetty.server.Server - jetty-9.3.11.v20160721
11:47:39.747 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
11:47:39.761 [main] INFO org.eclipse.jetty.server.Server - Started @3439ms
11:47:40.053 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
11:47:40.069 [main] INFO o.e.jetty.server.AbstractConnector - Started ServerConnector@49e6c755{HTTP/1.1,[http/1.1]}{0.0.0.0:8090}
11:47:40.070 [main] INFO o.s.b.c.e.j.JettyEmbeddedServletContainer - Jetty started on port(s) 8090 (http/1.1)
11:47:40.074 [main] INFO o.e.hono.adapter.lwm2m.Application - Started Application in 3.157 seconds (JVM running for 3.751)
11:47:53.095 [CoapServer#4] INFO o.e.h.a.l.o.TelemetryForwarder - New observation for resource [client: mydevice, path: /3303/0/5700] has been established
11:47:54.997 [CoapServer#2] WARN o.e.h.a.l.o.TelemetryForwarder - endpoint mydevice cannot be resolved to Hono ID, has device been registered with Hono?