跳到主要内容

停用蜂窝网络(device.turnOffCellular)

函数

device.turnOffCellular()

说明

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

停用移动蜂窝网络

示例

if device.isCellularEnabled() then  
print("wifi 已启用 ")
device.turnOffCellular() --停用蜂窝网络
end