Bluetooth tether code snippet