node-red-node-serialport message duplication

未关闭
#1,069 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript, nodejs
领域
embedded-iot

调研方向

从 node-red-node-serialport 串行控制节点开始,通过向共享同一端口的节点发送两次或更多次 enable 来复现该问题。追踪 enable 请求如何注册或触发 serial-node 输出,然后确认重复的 enable 会产生一条唯一消息,而不是重复消息。

由索引模型根据 Issue 内容生成。

描述

Which node are you reporting an issue on?

node-red-node-serialport serial control node

What are the steps to reproduce?

Just send enable two or more times to control node

What happens?

All serial nodes that have output and are configured for the same port will emit multiple same messages according to number of issued enables

What do you expect to happen?

I expect to emit the unique message only one time

I've tried it with usb serial and with native rs232, both same behaviour.

  • Node-RED version: 3.1.9
  • node.js version: 20.13.1
  • npm version: 10.5.2
  • Platform/OS: Ubuntu 24.04 LTS
  • Browser: Chrome
主要语言
JavaScript
星标
1.1k
派生
612
平均合并
13 小时 57 分钟
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

node-red/node-red-nodes 的其他 Issue

查看 node-red/node-red-nodes 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。