跳到主要内容

删除当前连接的wifi密码(device.removeCurrentWifiPassword)

函数

device.removeCurrentWifiPassword()

返回值

  1. enabled 布尔型

说明

该函数需要在 2.2.1 版本以上使用

用于删除当前连接的wifi密码 防止自动连接

示例

if device.removeCurrentWifiPassword() then  --删除wifi密码
device.turnOffWiFi() --关闭wifi wifi 将不会自动连接
end