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: BasicManager's echo() returns an Error if the message is too long #96

Closed dinesharjani closed 1 year ago

dinesharjani commented 1 year ago

There's a limit to the size of the echo message, which is 2475 bytes, package size (not payload - tested). If the message is over this limit, the firmware device will just not reply - wish the behaviour was different, but it's not. So, we provide a helpful error message that returns quickly rather than waiting for a timeout Error.