NordicSemiconductor / IOS-nRF-Connect-Device-Manager

A mobile management library for devices supporting nRF Connect Device Manager.
https://www.nordicsemi.com/Software-and-tools/Software/nRF-Connect-SDK
Apache License 2.0
90 stars 41 forks source link

Fix for McuMgrBleTransport not appending Data from 'chunked' Response #84

Closed dinesharjani closed 1 year ago

dinesharjani commented 1 year ago

Subsequent chunks of Data belonging to the same SequenceNumber are not pre-pended with the header, which includes the Sequence Number. This means that if a response is 'chunked', the subsequent chunks will be parsed for a header and most likely return an invalid Sequence Number value, therefore the WriteState will not append that Data to the proper Sequence Number, therefore never returning the Data to the upper levels.

dinesharjani commented 1 year ago

Fixes https://github.com/NordicSemiconductor/IOS-nRF-Connect-Device-Manager/issues/71