unable to connect LWM2M using wakaama client

586 views Asked by At

I am using Emqx V3.1.1. And I am integrating LwM2M plugins.

For testing the same I installed Wakaama client in the same server and created build using cmake. I loaded the plugin now plugin is running.

Which I tried to run the below command

./lwm2mclient -n ep1 -h localhost -p 5783 -4
Trying to bind LWM2M Client to port 56830
LWM2M Client "ep1" started on port 56830
> Opening connection to server at localhost:5783
 -> State: STATE_REGISTERING
 -> State: STATE_REGISTERING
 -> State: STATE_REGISTERING
 -> State: STATE_REGISTERING
 -> State: STATE_REGISTERING
 -> State: STATE_REGISTERING
 -> State: STATE_BOOTSTRAP_REQUIRED
lwm2m_step() failed: 0xA3

I have followed the below link

https://github.com/emqx/emqx-lwm2m

2

There are 2 answers

9
JuanDeLosMuertos On

You need a bootstrap server, take a look at examples/bootstrap_server/ on eclipse/wakaama git repo.

0
Shawn On
  1. Change the port to 5683, which is the default port of lwm2m.

  2. Make sure allow_anonymous = true in the emqx.conf