This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Lwm2m_client sample gives udp and lwm2m engine errors

Hello,

I have run into this problem again with regards to using the lwm2m_client sample. I can start running it fine but I get the error "Cannot init lwm2m engine" and "Cannot connect to UDP". My setup is correct as I've gotten help with this issue before.

I heard on the Slack channel for Zephyr that there is currently some issue with the sample and that it might currently be broken? Could someone enlighten me on this because it would really help my case.

BR, Joel

Parents Reply Children
  • I think it was just a person not working for Zephyr and it was just an assumption I am sure it works fine for others. I am working on 1.4.2 because I have integrated a HX711 library that I need for my development. The 1.4.2 has worked before because you helped med solve issues with it. I can try to move all my additions to NCS 1.5.0 and see if there are any differences. I had to do quite a few customisations to the current codebase to be able to integrate that library fully so maybe that messed something up with the lwm2m_client sample.

    BR, Joel

  • JoelRietz said:
    The 1.4.2 has worked before because you helped med solve issues with it.

     Yes, and I see that you have added a comment to previous ticket, unfortunately, I did not see it until now. 

     

    JoelRietz said:
    I think it was just a person not working for Zephyr and it was just an assumption I am sure it works fine for others.

     Ok, many of our developers are active in the Zephyr slack channel, so I needed to check if it was someone internal who had other information than me. That said, the lwm2m should work with 1.4.2 and trying with v1.5.0 was more a question if any changes was introduced that would make lwm2m work. 

    From your comment in previous case, I see you have 

    CONFIG_APP_LWM2M_SERVER="https://leshan.eclipseprojects.io/"

    Can you please change this to:

    CONFIG_APP_LWM2M_SERVER="leshan.eclipseprojects.io"

    Also, please add the following:

    CONFIG_LWM2M_LOG_LEVEL_DBG=y

    Kind regards,
    Øyvind

Related