how can i send a 100 or 500 bytes Payload from nRF9160 to Leshan server?

Hello,

i had a look at lwm2m_client_sample and it worked pretty well. Now my next step is to be able to send for example a 100 or 500 Bytes Payload from nRf9160 to Leshan server.

Since i am a new comer, i don't really know how to go about it.

Questions:

1. Is it possible in the first place to be able to send payload data to leshan server?

2. When yes. How can i go about it? 

3. When no. Is there any alternative of sending payload data using lwm2m?

I will be glad, if someone could help me.

best regards

Cedric

  • "stay with lwm2m as it."

    "wait for dtls connection id"

    Yes, that is my recommendation.

    Sure, if you want "many many" device "now", you may chose to use coap/dtls cid, patching mbedtls a little and using Californium 3.0.0-RC1.

    Even, if you only want "many" devices "now", you may chose leshan (with Californium 2.6, which  is already supporting dtls connection id, but the deprecated version) and mbedtls 2.27 (with the "legacy" variant of dtls connection id).

    But both will come with the burden to do the "integration/interoperability" on your own, as the zephyr PR shows.

  • Hi Didrik,

    just out of curiosity, when do you think that Zepyhr's Lwm2m will be able to support the "send operation" from Lwm2m v.1.1?

    And from your experience, how can i be able to perform this "send operation" using Zephyr's Lwm2m v1.0, if possible? I will like to know your thoughts on this.

    Best regards,

    Cedric

  • ced27 said:
    just out of curiosity, when do you think that Zepyhr's Lwm2m will be able to support the "send operation" from Lwm2m v.1.1?

    This question should probably be directed to the the lwm2m channel on the zephyrproject Discord server.

    ced27 said:
    And from your experience, how can i be able to perform this "send operation" using Zephyr's Lwm2m v1.0, if possible? I will like to know your thoughts on this.

    I am not familiar enough with the LwM2M spec or Zephyr's implementation to answer this properly. My suggestion is to start by reading the specification of the "send operation" to see how it is performed, and maybe compare it with other operations already implemented by Zephyr.

Related