提交 d44afa34 编写于 作者: Z zengyawen

update docs

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 791ed477
......@@ -3058,7 +3058,6 @@ Reads the buffer from the audio capturer. This API uses an asynchronous callback
audioCapturer.read(bufferSize, true, async(err, buffer) => {
if (!err) {
console.log("Success in reading the buffer data");
var number = fileio.writeSync(fd, buffer);
}
};
```
......
......@@ -1311,7 +1311,7 @@ Disconnects an A2DP connection.
```js
let a2dpSrc = bluetooth.getProfile(PROFILE_A2DP_SOURCE);
let boolean ret = a2dpSrc.disconnect('XX:XX:XX:XX:XX:XX');
let ret = a2dpSrc.disconnect('XX:XX:XX:XX:XX:XX');
```
......
......@@ -563,7 +563,7 @@ Enables listening for error events of the UDPSocket connection. This API uses an
**Example**
```
let udp = socket.constructUDPSocketInstance()
let udp = socket.constructUDPSocketInstance();
udp.on('error', err => {
console.log("on error, err:" + JSON.stringify(err))
});
......@@ -591,7 +591,7 @@ Disables listening for error events of the UDPSocket connection. This API uses a
**Example**
```
let udp = socket.constructUDPSocketInstance()
let udp = socket.constructUDPSocketInstance();
let callback = err =>{
console.log("on error, err:" + JSON.stringify(err));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册