提交 38d42e60 编写于 作者: @ @shi-xiaoxiao-iris

[分布式硬件DM]示例代码修改

Signed-off-by: N@shi-xiaoxiao-iris <shixiaoxiao2@huawei.com>
上级 7bffdce7
...@@ -589,8 +589,8 @@ stopDeviceDiscovery(subscribeId: number): void ...@@ -589,8 +589,8 @@ stopDeviceDiscovery(subscribeId: number): void
```js ```js
try { try {
// 入参需要和startDeviceDiscovery接口传入的subscribeId配对使用 // stopDeviceDiscovery和startDeviceDiscovery需配对使用,入参需要和startDeviceDiscovery接口传入的subscribeId值相等
var subscribeId = 123456; var subscribeId = 12345;
dmInstance.stopDeviceDiscovery(subscribeId); dmInstance.stopDeviceDiscovery(subscribeId);
} catch (err) { } catch (err) {
console.error("stopDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message); console.error("stopDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message);
...@@ -668,8 +668,8 @@ unPublishDeviceDiscovery(publishId: number): void ...@@ -668,8 +668,8 @@ unPublishDeviceDiscovery(publishId: number): void
```js ```js
try { try {
// 入参需要和publishDeviceDiscovery接口传入的publishId配对使用 // unPublishDeviceDiscovery和publishDeviceDiscovery配对使用,入参需要和publishDeviceDiscovery接口传入的publishId值相等
var publishId = 123456; var publishId = 12345;
dmInstance.unPublishDeviceDiscovery(publishId); dmInstance.unPublishDeviceDiscovery(publishId);
} catch (err) { } catch (err) {
console.error("unPublishDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message); console.error("unPublishDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册