How can I know if the connection is always open ?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- electron, node.js
- Ambito
- embedded-iot, networking
Direzione di ricerca
Non sono indicati file o test. Inizia tracciando connection.isOpen(), la gestione della perdita di connessione e il percorso di scrittura in node-bluetooth, quindi riproduci il problema con le versioni indicate Node v8.12.0 e node-bluetooth v1.2.5. Il lavoro è completato quando una connessione persa può essere rilevata in modo affidabile prima della scrittura e non produce un errore non gestito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 205
- Fork
- 56
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lsongdev/node-bluetooth
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
lsongdev/node-bluetooth#61 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
lsongdev/node-bluetooth#60 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
lsongdev/node-bluetooth#57 · 1 commento · 2 reazioni ·
-
Maintenance status? Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 10/100
lsongdev/node-bluetooth#55 · 8 commenti ·
-
Battery status? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
lsongdev/node-bluetooth#54 · 1 commento ·
Tutte le issue di lsongdev/node-bluetooth
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ros2/message_filters#338 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
subsurface/subsurface#4984 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·