未验证 提交 d071c95e 编写于 作者: O openharmony_ci 提交者: Gitee

!5679 【communication】WIFI xts 接口wifidevicecofig属性值补齐

Merge pull request !5679 from 权力/myfeature
...@@ -91,7 +91,8 @@ describe('bluetoothhostTest2', function() { ...@@ -91,7 +91,8 @@ describe('bluetoothhostTest2', function() {
*/ */
it('SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0200', 0, async function (done) { it('SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0200', 0, async function (done) {
function PinRequiredParam(data) { 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.setDevicePairingConfirmation(data.deviceId,false);
} }
bluetooth.BLE.on('pinRequired', PinRequiredParam); bluetooth.BLE.on('pinRequired', PinRequiredParam);
...@@ -302,3 +303,4 @@ describe('bluetoothhostTest2', function() { ...@@ -302,3 +303,4 @@ describe('bluetoothhostTest2', function() {
} }
...@@ -125,6 +125,13 @@ export default function actsWifiCandidateNetWorkTest() { ...@@ -125,6 +125,13 @@ export default function actsWifiCandidateNetWorkTest() {
"preSharedKey": "12345678", "preSharedKey": "12345678",
"isHiddenSsid": false, "isHiddenSsid": false,
"securityType": wifiSecurityType.WIFI_SEC_TYPE_PSK, "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) await wifi.addCandidateConfig(wifiDeviceConfig)
.then(netWorkId => { .then(netWorkId => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册