节点红色中的串口关闭问题

时间:2018-02-10 08:04:01

标签: serial-port node-red johnny-five

我正在使用johnny-five,问题是如何关闭已经打开的串口? 问题是,当我在红色节点中重新部署代码时,它会抛出一个错误,如下所示:

    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.

1 个答案:

答案 0 :(得分:0)

解决方法可能是将Deploy设置为“仅限修改的节点”,因此如果已更改,Node-RED将仅重新启动johnny-5。

您必须向johnny-five节点(node-red-contrib-gpio?)的开发人员提出问题才能正确修复此问题。