zephyr.js
zephyr.js copied to clipboard
[ocf] How to know ocf client is stopped
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
Steps to reproduce
- Build OcfServer.js on A101
- Connect with BLE
- 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