How do I detect crashes in Node.js/Electron when devices disconnects unexpectedly?
hey @Middleware & OS My Node.js/Electron app (macOS) interfaces with Bluetooth devices. I suspect driver crashes as the devices become unresponsive & require manual driver reload
kextunload
and kextload
. Is there a way to programmatically detect these crashes in Node.js/Electron to know when a device disconnects unexpectedly?1 Reply
Use the
noble
library, which provides an API for interacting with Bluetooth Low Energy (BLE) devices in Node.js