node-red-node-serialport message duplication

オープン
#1,069 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, nodejs
領域
embedded-iot

調査の方向性

シリアル制御ノード node-red-node-serialport から始め、同じポートを共有するノードに enable を2回以上送信して問題を再現します。enable リクエストが serial-node の出力をどのように登録またはトリガーするかを追跡し、その後、enable を繰り返すと重複ではなく1つの一意なメッセージが生成されることを確認します。

索引モデルが 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分
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

node-red/node-red-nodes のほかの issue

node-red/node-red-nodes の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。