zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

[ocf] How to know ocf client is stopped

Open wanghongjuan opened this issue 8 years ago • 0 comments

Description

When stopping ocf client, I want to unregister the registered resource, but the server.js not clear when the ocf client is stoped. Is there any idea can resolve this solution? Just like this sample

Test Code

OcfServer.js OcfClient.js

Steps to reproduce

  1. Build OcfServer.js on A101
  2. Connect with BLE
  3. Build and run OcfClient.js on linux, after getting the output, exit the process

Actual Result

Not clear

Excepted Result

After stopping the OcfClient.js, unregister the registered resouce in OcfServer.js

wanghongjuan avatar Jul 26 '17 07:07 wanghongjuan