设备维护

## 设备维护 导入头文件`#import <H3CMagicKit/H3CGatewayObject+Maintain.h` #### 一、 端口状态接口 #### 1.1 获取WAN、LAN口端口状态 获取WAN、LAN端口状态 ``` [H3CGatewayObject getWLanPortDetailWithSuccess:^(NSArray<H3CWLanPortModel *> * _Nonnull portArray) { } failure:^(H3CError *error) { }]; ``` >w 接口需要能力集58位支持 #### 二、 日志信息接口 #### 2.1 获取设备日志信息 获取设备日志信息列表。 ``` [H3CGatewayObject getLogMessagesWithLogStartIndex:startIndex success:^(H3CLogModel * _Nonnull logModel) { } failure:^(H3CError *error) { }]; ``` >w 接口需要能力集59位支持 #### 三、 防蹭网 开启防蹭网功能后,终端多次攻击网关Wi-Fi会被禁止接入。 >w 功能需要能力集61位支持 #### 3.1 获取蹭网设备列表 获取多次攻击网关,已被禁止接入的用户列表。 ``` [H3CGatewayObject getWiFiMothproofListWithSuccess:^(H3CWiFiMothproofMainModel * _Nonnull mothProofModel) { } failure:^(H3CError *error) { }]; ``` #### 3.2 终端加入白名单 将已被禁止接入的用户列表,加入白名单。 ``` [H3CGatewayObject getWiFiMothproofListWithSuccess:^(H3CWiFiMothproofMainModel * _Nonnull mothProofModel) { } failure:^(H3CError *error) { }]; ``` #### 3.3 获取防蹭网开关状态 获取防蹭网开关是否开启。 ``` [H3CGatewayObject getWiFiMothproofSwitchStateWithSuccess:^(BOOL isOpen) { } failure:^(H3CError *error) { }]; ``` >w 接口需要能力集74位支持,若不支持,防蹭网开关默认是开启状态。 #### 3.4 开关防蹭网开关 开启/关闭防蹭网开关。 ``` [H3CGatewayObject getWiFiMothproofListWithSuccess:^(H3CWiFiMothproofMainModel * _Nonnull mothProofModel) { } failure:^(H3CError *error) { }]; ``` >w 接口需要能力集74位支持,若不支持,防蹭网开关默认是开启状态。 #### 三、 能力集 | 能力集序号|能力集属性|描述| |-|-|-| |58| isSupportForPortInfo | 是否支持端口状态获取| |59| isSupportForLogMessage | 是否支持获取设备日志列表| |61| isSupportForPreventWiFiFree | 是否支持防蹭网功能| |74| isSupportPreventWiFiSwitch | 是否支持防蹭网开关|