How can I know if the connection is always open ?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- electron, node.js
調査の方向性
ファイルやテストは指定されていません。まず node-bluetooth における connection.isOpen()、接続切断の処理、書き込み経路を追跡し、指定された Node v8.12.0 と node-bluetooth v1.2.5 のバージョンで障害を再現してください。書き込み前に切断された接続を確実に検出でき、キャッチされないエラーが発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
For beginning thank you for this node module :).
I have an electron program that open a bluetooth connection and listening the event "data".
How can I know if the connection is always open ?
Before write data I check if the connection is open with connection.isOpen() but this method return true if the connection has been open and lost.
I have try to listen the events "closed", "close", "failure" without any success.
If the connection has been open and lost, when I write data I have an uncatched exception:
Error : Error reading from connection.
The calls to the write method is in try/catch block
Node version : v8.12.0
node-bluetooth: v1.2.5
Thank you for your help.
- 主要言語
- C++
- スター
- 205
- フォーク
- 56
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lsongdev/node-bluetooth のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
lsongdev/node-bluetooth#61 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
lsongdev/node-bluetooth#60 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
lsongdev/node-bluetooth#57 · コメント 1 件 · リアクション 2 件 ·
-
Maintenance status? オープン
難易度 1/5 1時間未満 初心者へのやさしさ 10/100
lsongdev/node-bluetooth#55 · コメント 8 件 ·
-
Battery status? オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
lsongdev/node-bluetooth#54 · コメント 1 件 ·
lsongdev/node-bluetooth の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ros2/message_filters#338 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
subsurface/subsurface#4984 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·