airpods switching between devices code example
Example: airpods connecting and then disconnecting
I opened Bluetooth preferences on my MAC and told it to forget my AirPods. I then plugged the AirPods case directly into my MAC using the lightening cable. I held down the button on the AirPods case until it flashed white, then on my MAC selected the AirPods and clicked connect.