簡體   English   中英

節點紅色中的串行端口關閉問題

[英]serial port close issue in node red

我正在使用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.

解決方法可能是將“部署”設置為“僅已修改的節點”,因此Node-RED僅在已更改的情況下才重啟johnny-5。

您必須與johnny-五個節點( node-red-contrib-gpio ?)的開發人員提出問題,才能正確解決此問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM