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_Edit802xCfg

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_Edit802xCfg(
        LONG lUserID,
        BOOL bSwitch,
        const char* username,
        const char* password);

    1
    2
    3
    4
    5
    public static extern Boolean NET_SDK_Edit802xCfg(
        Int32 lUserID,
        Boolean bSwitch,
        string username,
        string password);

### Function Description

802.X configuration interface, set the 802.1X authentication parameters of the device.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, return value of `NET_SDK_Login`.
bSwitchin | BOOL | 802.1X switch (TRUE: on, FALSE: off).
usernamein | char* | 802.1X authentication username.
passwordin | char* | 802.1X authentication password (clear text, internal MD5 encryption).

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code