我第一次调startAPConfig,当时手机未切换至摄像头WiFi。然后切换WiFi后再次调用startAPConfig方法,会有两次回调日志显示
两次日志时间一样,先拿到的是当前收益没有连接目标WiFi
第二条日志是code为0 得信息
我在回调失败得时候调用了stopAPConfig方法。依然打印了两次日志
后来我在回调失败得时候又把插件对象变null,第二次调用startAPConfig前先声明变量。依然还是打印了两次日志
附近中上传得有执行摄像头配网方法得代码
下面是日志输出
11:42:20.873 即将开始与设备配网!,当前设置的WiFi网络信息 : , sundynNB2.4G, 20010828 at pages/index/cameraDistribution/cameraDistribution.vue:592
11:42:20.906 设备的网络信息 : , SoftAP_J43063058, SoftAP_POYYDL, POYYDL at pages/index/cameraDistribution/cameraDistribution.vue:594
11:42:20.934 配网传递参数信息, [Object] {"routerWifiSsid":"sundynNB2.4G","routerWifiPwd":"20010828","deviceSerial":"J43063058","deviceVerifyCode":...} at pages/index/cameraDistribution/cameraDistribution.vue:612
11:42:20.965 配网返回结果, [Object] {"codeDescMsg":"sdk can not de detect device's status because the phone do not connect to target wifi","co...} at pages/index/cameraDistribution/cameraDistribution.vue:615
11:42:21.302 配网返回结果, [Object] {"codeDescMsg":"success","code":0} at pages/index/cameraDistribution/cameraDistribution.vue:615