Hello,
Sorry for being unclear. I am trying to connect a LWM2M client (Leshan LWM2M client demo [1]) to Leshan server and get the telemetry data of observed resources to Hono consumer.
I followed these steps:
1) Compile Hono (from branch "add_lwm2m" [1]) and start the consumer:
~/hono/example/target/hono$ docker stack deploy -c docker-compose.yml hono
~/hono/example$ mvn spring-boot:run -Drun.arguments=--hono.client.host=192.168.56.103,--hono.client.username=user1@HONO,--hono.client.password=pw
2) Run the Leshan client demo (Leshan version 1.0.0-M1 [2]) from other machine:
java -jar leshan-client-demo/target/
leshan-client-demo-*-SNAPSHOT-jar-with-dependencies.jar -u
192.168.56.103:5683 (192.168.56.103 is the host where Hono is running on).
3) Open the Leshan's Demo Web UI at
http://localhost:8090, choose the registered device from 2). In the management UI, I choose Observed on several resources such as Location and Temperature. I can read the data from
the Web UI, but in the terminal of the Hono consumer I see no telemetry data being forwarded.
The error I enclosed in the last email is from the terminal of Hono after I started the consumer. Those errors throw quite randomly, sometimes it happens right after I started the consumer, sometimes it takes a while to occur. The errors don't affect the
process of the consumer because I can still receive MQTT and HTTP telemetry data, it just floods the terminal with alot of warnings.
Thank you very much for your help.
Best regards,
T. Nguyen