connect-wifi-first 接口
修改于:V2.4
设备首次连接此无线网络。
请求方式
GET http://ip/usapi?method=connect-wifi-first&name=magewell&passwd=1111111&secu=2&is-auto=1&is-hide=0
| 参数 | 说明 |
|---|---|
| method | 方法名称:connect-wifi-first |
| name | 无线网络的名称 |
| passwd | 无线网络的密码 |
| secu | 无线网络的加密方式, 0: unencrypted 1: wep 2: WPA/PSK 3: WPA2/PSK 4: WPA2/EAP |
| is-auto | 是否允许自动连接此无线网络 |
| is-hide | 是否是隐藏的无线网络 |
| identity | 身份认证, secu 为 WPA2/EAP 设置 |
| is-dhcp | 是否动态获取 IP 地址 0:手动设置 1:动态获取 |
| ip | IP 地址 |
| mask | 子网掩码 |
| router | 网关 |
| dns | DNS 服务器 |
返回数据
{
"result": 0
}
| 属性 | 说明 |
|---|---|
| result | 返回状态,0:操作成功,返回其它值请参考 API 状态码 |