Reduce the number of retries for an unavailable device

We are currently working with Zigbee coordinator sample SDK version 2.1.0.
When attempting to write data to a unavailable device, the stack sends an unimplemented signal four times, with a gap of 10 seconds between each attempt. After this (about 40 seconds) later we have the callback. But we would like to reduce this time even if it means reducing the no of retries.
To reduce the number of retries, we adjusted the value of ZB_MAC_MAX_FRAME_RETRIES from 3U to 1U. However, even after this modification, the stack still sends the unimplemented signal four times with a 10-second gap. If we need to reduce the number of retries and also the time duration between attempts, how should we adjust the settings? Our aim is to bring down this 40 seconds to 15 seconds as we don't want the user to wait that long for callback.

Please note, that in the zb_zcl_send_write_attribute command function, we have used ZB_ZCL_DISABLE_DEFAULT_RESPONSE.


Thanks, and regards,
Kavitha

Related