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

!20265 修改代码示例问题

Merge pull request !20265 from 刘姣姣/master
......@@ -1644,7 +1644,7 @@ getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void
**示例:**
```js
import wifi from '@ohos.wifiManager';
import wifi from '@ohos.wifi';
wifi.getP2pPeerDevices((err, data) => {
if (err) {
......
......@@ -2518,7 +2518,7 @@ p2pConnect(config: WifiP2PConfig): void
var recvP2pPersistentGroupChangeFunc = () => {
console.info("p2p persistent group change receive event");
wifiManager.getCurrentGroup((err, data) => {
wifiManager.getCurrentP2pGroup((err, data) => {
if (err) {
console.error('failed to get current group: ' + JSON.stringify(err));
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册