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

McuManager Sequence Number Callback Reordering #79

Closed dinesharjani closed 1 year ago

dinesharjani commented 1 year ago

Previously, calls to send()' command in McuManager were not returned in-order. They were returned as they were returned by CoreBluetooth, leaving the re-ordering to higher-levels. But now, McuManager now buffers callbacks in case it detects a different Sequence Number it's not expecting, and keeps the results and the callbacks until it has enough stored results to return them in-order.