Skip to content

Lwm2m blockwise data transfer (using Block1 option) with Leshan not working #4798

Closed
@ghseb

Description

@ghseb

There possibly is bug in sn_coap_protocol.c that breaks Block1 data transfer from Leshan servers to mbed clients.

Description

  • Type: Bug
  • Priority: Major

Bug

mbed-os sha:
8828635

Actual behavior
When transmitting data as block-wise PUT (Coap Block1) from Leshan to a mbed device the token of the acknowledgement (Coap Continue) differs from token of the block-message. Leshan then thinks that the block transfer has failed and no further blocks are sent.

Expected behavior
Coap Continue uses the same token as the Block1 Message it acknowledges.

Suggested solution
Copy the token of the Block1 message into the acknowledgement (Coap Continue).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions