提交 e603ca57 编写于 作者: Q quanli 提交者: 权力
上级 7d273fdf
......@@ -75,7 +75,8 @@ describe('bluetoothhostTest2', function() {
*/
it('SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0200', 0, async function (done) {
function PinRequiredParam(data) {
console.info("[bluetooth_js] pinRequired on:" + JSON.stringify(data));
console.info("[bluetooth_js] pinRequired on:" +
JSON.stringify(data.deviceId)+JSON.stringify(data.pinCode));
bluetooth.setDevicePairingConfirmation(data.deviceId,false);
}
bluetooth.BLE.on('pinRequired', PinRequiredParam);
......@@ -286,3 +287,4 @@ describe('bluetoothhostTest2', function() {
}
......@@ -125,6 +125,13 @@ export default function actsWifiCandidateNetWorkTest() {
"preSharedKey": "12345678",
"isHiddenSsid": false,
"securityType": wifiSecurityType.WIFI_SEC_TYPE_PSK,
"netId": -1,
"ipType": 1,
"creatorUid": 7,
"disableReason": 0,
"randomMacType": 0,
"randomMacAddr": "11:22:33:44:55:66",
"staticIp": {"ipAddress": 1284752956,"gateway": 1284752936},
};
await wifi.addCandidateConfig(wifiDeviceConfig)
.then(netWorkId => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册