"connected", "disconnected": the HSBluetoothDevice that macOS connected or disconnected. For Hammerspoon's own connections to BLE peripherals, listen on the HSBluetoothPeripheral instead.
"powerChanged": true when Bluetooth is turned on, false when it's turned off
"discovered": each HSBluetoothPeripheral found while hs.bluetooth.scan() runs
Register a listener for Bluetooth events.
Listeners receive:
"connected","disconnected": theHSBluetoothDevicethat macOS connected or disconnected. For Hammerspoon's own connections to BLE peripherals, listen on theHSBluetoothPeripheralinstead."powerChanged":truewhen Bluetooth is turned on,falsewhen it's turned off"discovered": eachHSBluetoothPeripheralfound whilehs.bluetooth.scan()runs