提交 96b34e4f 编写于 作者: L liujiaojiao

修改代码示例问题

Signed-off-by: Nliujiaojiao <liujiaojiao9@huawei.com>
上级 b88e2521
......@@ -1644,7 +1644,7 @@ getP2pPeerDevices(callback: AsyncCallback&lt;WifiP2pDevice[]&gt;): 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.
先完成此消息的编辑!
想要评论请 注册