Communication API > BS2_SetDefaultLongResponseTimeout


BS2_SetDefaultLongResponseTimeout

[+ 2.9.12] Directly modify the packet response timeout for APIs with long response times from the device, such as BS2_ScanCard, BS2_WriteCard, BS2_EraseCard.
The default value is 30 seconds.

Declaration

#include "BS_API.h"
 
int BS2_SetDefaultLongResponseTimeout(void* context, long ms);

Parameters

Return Value

Returns BS_SDK_SUCCESS when performed successfully, and returns the corresponding error code when an error occurs.

See Also

BS2_GetDefaultLongResponseTimeout