BS2_SetDefaultLongResponseTimeout
+ v2.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
-
[In]
context: Context -
[In]
ms: Timeout (milliseconds)
Return Value
Returns BS_SDK_SUCCESS when performed successfully, and returns the corresponding error code when an error occurs.