我正在使用 johnny-5,问题是如何关闭已经打开的串口?问题是当我重新部署红色节点中的代码时,它会引发错误,如下所示:
10 Feb 10:38:33 - [info] Stopping flows
10 Feb 10:38:33 - [info] Stopped flows
10 Feb 10:38:33 - [info] Starting flows
1518239313152 Connected COM6
10 Feb 10:38:33 - [info] Started flows
1518239313157 Error Opening COM6: Access denied
(node:12788) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Unhandled "error" event. ([object Object])
(node:12788) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1518239323160 Device or Firmware Error A timeout occurred while connecting to the Board.