fn create_heart_rate_device( adapter: &BluetoothAdapter, empty: bool, ) -> Result<BluetoothDevice, Box<dyn Error>>