- 根目录
- 认证
- 用户
- 角色
- 用户管理
- 设备
- 设备管理
- 创建设备组POST
- 修改设备组PUT
- 删除设备组DELETE
- 添加设备POST
- 删除设备DELETE
- 重启设备POST
- 关闭设备POST
- 创建设备分类POST
- 修改设备分类PUT
- 删除设备分类DELETE
- 获取未分组设备信息GET
- 修改设备基本信息PUT
- 批量修改设备所属组PUT
- 批量修改设备所属分类PUT
- 修改设备通道信息PUT
- 踢在线设备下线POST
- 获取通用配置GET
- 设置通用配置PUT
- 设置电源配置PUT
- 获取以太网配置GET
- 设置以太网配置PUT
- 获取Wifi配置GET
- 设置Wifi配置PUT
- 获取无线网络配置GET
- 设置无线网络配置PUT
- 获取抓拍配置GET
- 设置抓拍配置PUT
- 获取音频输入配置GET
- 设置音频输入配置PUT
- 获取音频输出配置GET
- 设置音频输出配置PUT
- 获取设备编码通道属性GET
- 设置设备编码通道属性POST
- 获取视频源GET
- 设置视频源PUT
- 获取设备GPS配置GET
- 设置设备GPS配置POST
- 获取设备服务器配置GET
- 设置设备服务器配置POST
- 获取设备存储器信息GET
- 设置设备存储器信息PUT
- 获取格式化进度GET
- 格式化存储器PUT
- 获取设备存储设置GET
- 修改设备存储设置POST
- 获取设备上传设置GET
- 修改设备上传设置POST
- 获取存储状态GET
- 获取存储计划GET
- 设置存储计划PUT
- 获取叠加信息GET
- 设置叠加信息PUT
- 获取升级固件状态GET
- 批量获取升级固件状态POST
- 升级固件POST
- 获取执法仪信息GET
- 设置执法仪信息PUT
- 获取传感器数据GET
- 设置传感器数据PUT
- 获取上下线控制配置GET
- 设置上下线控制配置PUT
- 添加配置计划POST
- 修改配置计划PUT
- 删除配置计划DELETE
- 获取配置计划GET
- 获取配置计划列表POST
- 添加配置计划设备POST
- 删除配置计划设备POST
- 获取配置计划设备列表POST
- 获取配置计划设备GET
- 获取配置计划未 关联设备列表POST
- 云台
- IM群组
- 即时通讯
- websocket
- 历史数据
- 电子围栏
- 报警联动
- 28181in
- 28181out
- 地图标签
- 录像文件时间线
- 平台存储
- 平台存储状态
- 联系人
- 模块程序
- 黑白名单
- 媒体流操作
- 采集站管理
- 采集站对接
- 平台文件分类
设置Wifi配置
PUT
https://192.168.88.30:9781/bvcsp/v1/pu/network/wifi/{puid}
最后修改时间:2024-06-19 10:10:13
// WifiSecurityType WIFI安全类型
type WifiSecurityType string
const (
WifiSecurityTypeOpen WifiSecurityType = "open"
WifiSecurityTypeShared WifiSecurityType = "shared"
WifiSecurityTypeWPAPSK WifiSecurityType = "wpa_psk"
WifiSecurityTypeWPA2PSK WifiSecurityType = "wpa2_psk"
)
// WifiCryptType WIFI加密类型
type WifiCryptType string
const (
WifiCryptTypeNone WifiCryptType = "none"
WifiCryptTypeWEP40 WifiCryptType = "wep40" // 64
WifiCryptTypeWEP104 WifiCryptType = "wep104" // 128
WifiCryptTypeTKIP WifiCryptType = "tkip"
WifiCryptTypeAES WifiCryptType = "aes" // CCMP
)
请求参数
Path 参数
puid
string
设备id
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
必需
Body 参数application/json
设备视频源信息
enable
boolean
必需
mode
number
必需
general
object
可选
ssid
string
可选
securityType
string
可选
cryptType
string
可选
wepKey
array[string]
WEP密钥
wpaKey
string
WPA密钥
dhcp
number
必需
pppoe
number
必需
autoDNS
boolean
必需
ip
string
ip地址
netMask
string
子网掩码
gateway
string
默认网关
dns
array[string]
域名服务器
wifiHotSpot
object
可选
providerAll
array[string]
可选
providerIndex
number
当前使用的提供商
areaAll
array[string]
可选
areaIndex
number
开户地
userName
string
用户名
password
string
密码
wifiAP
object
可选
enableSetting
boolean
必需
enable
boolean
是否使能
hideSSID
boolean
是否隐藏SSID
ssid
string
SSID名称
safeType
number
可选
password
string
连接密钥
channel
number
可选
autoChannelSelect
boolean
是否自动选择信道
ip
string
IP
subMark
string
子网掩码
dhcp
number
可选
dhcpStartAddr
string
可选
dhcpEndAddr
string
可选
示例
{
"enable": true,
"mode": 0,
"general": {
"ssid": "string",
"securityType": "string",
"cryptType": "string",
"wepKey": [
"string"
],
"wpaKey": "string",
"dhcp": 0,
"pppoe": 0,
"autoDNS": true,
"ip": "string",
"netMask": "string",
"gateway": "string",
"dns": [
"string"
]
},
"wifiHotSpot": {
"providerAll": [
"string"
],
"providerIndex": 0,
"areaAll": [
"string"
],
"areaIndex": 0,
"userName": "string",
"password": "string"
},
"wifiAP": {
"enableSetting": true,
"enable": true,
"hideSSID": true,
"ssid": "string",
"safeType": 0,
"password": "string",
"channel": 0,
"autoChannelSelect": true,
"ip": "string",
"subMark": "string",
"dhcp": 0,
"dhcpStartAddr": "string",
"dhcpEndAddr": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://192.168.88.30:9781/bvcsp/v1/pu/network/wifi/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"enable": true,
"mode": 0,
"general": {
"ssid": "string",
"securityType": "string",
"cryptType": "string",
"wepKey": [
"string"
],
"wpaKey": "string",
"dhcp": 0,
"pppoe": 0,
"autoDNS": true,
"ip": "string",
"netMask": "string",
"gateway": "string",
"dns": [
"string"
]
},
"wifiHotSpot": {
"providerAll": [
"string"
],
"providerIndex": 0,
"areaAll": [
"string"
],
"areaIndex": 0,
"userName": "string",
"password": "string"
},
"wifiAP": {
"enableSetting": true,
"enable": true,
"hideSSID": true,
"ssid": "string",
"safeType": 0,
"password": "string",
"channel": 0,
"autoChannelSelect": true,
"ip": "string",
"subMark": "string",
"dhcp": 0,
"dhcpStartAddr": "string",
"dhcpEndAddr": "string"
}
}'
返回响应
🟢200成功
application/json
Body
code
enum<integer>
错误码
枚举值:
012357468916101112131415171819
msg
string
结果描述
示例
{
"code": 0,
"msg": "string"
}