Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_SetReconnect

### Interface Definition

C++C#

    1
    2
    3
    BOOL NET_SDK_SetReconnect(
        DWORD dwInterval = 5000,
        BOOL bEnableRecon = TRUE);

    1
    2
    3
    public static extern bool NET_SDK_SetReconnect(
        UInt32 dwInterval = 5000,
        bool bEnableRecon = true);

### Function Description

Set the SDK reconnection function.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
dwIntervalin | DWORD | The reconnection interval is in milliseconds. The default value is 5000.
bEnableReconin | BOOL | Reconnection switch, TRUE means to turn on reconnection, False means to turn off reconnection, the default value is TRUE.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code