Files
xiao_pet_tracker_rust/mac_clear_ble_cache.sh
2025-06-27 16:41:18 +02:00

9 lines
283 B
Bash
Executable File

#!/bin/zsh
# A script to clear the macOS Bluetooth cache to get the latest BLE service changes.
sudo pkill bluetoothd
sudo rm /Library/Preferences/com.apple.Bluetooth.plist &> /dev/null
rm ~/Library/Preferences/ByHost/com.apple.Bluetooth.*.plist &> /dev/null
sudo pkill bluetoothd