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_ActiveDevice

### Interface Definition

C++C#

    1
    2
    3
    4
    BOOL NET_SDK_ActiveDevice(
        char* pIp,
        int iPort,
        char* password);

    1
    2
    3
    4
    public static extern Boolean NET_SDK_ActiveDevice(
        IntPtr pIp,
        Int32 iPort,
        IntPtr password);

### Function Description

Activate the device using its IP and port.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
pIpin | char* | The IP address of the device to be activated (can be a secondary IP starting with 169.254).
iPortin | int | The http port of the device to be activated.
passwordin | char* | Activate device password.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code