Connect/disconnect AirPods from the Command Line
swiftc AirPods.swift
Pass AirPods MAC address as an argument:
./AirPods 00-00-00-00-00-00
- Create
.airpods
file in your home directory containing your AirPods MAC address. - Run:
./AirPods
To find out your AirPods MAC address try:
swift ListDevices.swift