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_EditPPPoECfg

### Interface Definition

C++C#

    1
    2
    3
    BOOL NET_SDK_EditPPPoECfg(
        LONG lUserID,
        BOOL bSwitch);

    1
    2
    3
    public static extern Boolean NET_SDK_EditPPPoECfg(
        Int32 lUserID,
        Boolean bSwitch);

### Function Description

Edit PPPoE configuration (valid only for NVR, IPC and DVR return FALSE directly).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
bSwitchin | BOOL | Whether to enable PPPoE.
userNamein | char* | PPPoE username.
passwordin | char* | PPPoE password.
securityVerin | int | Password security version, default is 1.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code