DTLS on LWM2M Client

Hello to all

I am yet to find a way to turn off DTLS when using the lwm2m client sample.  When  'CONFIG_LWM2M_DTLS_SUPPORT=n' is set, the lwm2m engine is unable to run.  Is there a way to do this?  I have found a post where someone asked a similar question:  Turn off DTLS in LwM2M Client sample  However, I think this may not apply to newer versions of the client.  Any help would be appreciated.

Thank you in advance!

Hassan  

Parents
  • Hi Hkhan7861,

    I agree that the application logic is not proper here, can you try to modify the following part of the codes in nrf\samples\nrf9160\lwm2m_client\src\main.c

    #if defined(CONFIG_LWM2M_DTLS_SUPPORT)
            if (lwm2m_security_needs_bootstrap()) {
                bootstrap_flags = LWM2M_RD_CLIENT_FLAG_BOOTSTRAP;
            } else {
                bootstrap_flags = 0;
            }
    #endif /* CONFIG_LWM2M_DTLS_SUPPORT */

    Best regards,

    Charlie

Reply
  • Hi Hkhan7861,

    I agree that the application logic is not proper here, can you try to modify the following part of the codes in nrf\samples\nrf9160\lwm2m_client\src\main.c

    #if defined(CONFIG_LWM2M_DTLS_SUPPORT)
            if (lwm2m_security_needs_bootstrap()) {
                bootstrap_flags = LWM2M_RD_CLIENT_FLAG_BOOTSTRAP;
            } else {
                bootstrap_flags = 0;
            }
    #endif /* CONFIG_LWM2M_DTLS_SUPPORT */

    Best regards,

    Charlie

Children
Related