setPrepareDataObjectDelay
This method sets the duration of a delay, that the service will wait before sending each data object in Secure DFU. The delay will be done after a data object is created, and before any data byte is sent. The default value is 0, which disables this feature.
It has been found, that a delay of at least 300ms reduces the risk of packet lose (the bootloader needs some time to prepare flash memory) on DFU bootloader from SDK 15 and 16. The delay does not have to be longer than 400 ms, as according to performed tests, such delay is sufficient.
The longer the delay, the more time DFU will take to complete (delay will be repeated for each data object (4096 bytes)). However, with too small delay a packet lose may occur, causing the service to enable PRN and set them to 1 making DFU process very, very slow (but reliable).
Since
1.10
Return
the builder
Parameters
the initial delay that the service will wait before sending each data object.