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
Boss lady
Boss lady8mo ago
Use the noble library, which provides an API for interacting with Bluetooth Low Energy (BLE) devices in Node.js

Did you find this page helpful?