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

Parents
  • Hi,

    Could you clarify a bit more what you actually want to accomplish?

    LwM2M have defined a lot of objects, that you can update the value of. It would therefore usually be more natural to update the relevant objects, than send a big blob of data.

    So there isn't really a "lwm2m_send()" function, but instead there are functions for updating an object, or the instances of an object.

    That said, there is a function for setting a resource to an opaque buffer, so if that is what you really want, it is possible.

    Best regards,

    Didrik

Reply
  • Hi,

    Could you clarify a bit more what you actually want to accomplish?

    LwM2M have defined a lot of objects, that you can update the value of. It would therefore usually be more natural to update the relevant objects, than send a big blob of data.

    So there isn't really a "lwm2m_send()" function, but instead there are functions for updating an object, or the instances of an object.

    That said, there is a function for setting a resource to an opaque buffer, so if that is what you really want, it is possible.

    Best regards,

    Didrik

Children
Related