/swift-bluetooth-command-line

Discover bluetooth devices from command line

Primary LanguageSwift

Swift Bluetooth Command Line

Features :

  • Show paired devices
  • Show nearby bluetooth connections
  • Show pairing alert to any new BLE enabled device
  • Toggle bluetooth connection with any BLE enabled device

Configuration :

To run this script, you will require XCode command line tools. You can download command line tools from this link

Usage :

After downloading the scripts, go to terminal. To run any script run run showPairing.swift or show toggleBluetooth.swift following device name with percentage encoding.

Example :

run showPairing.swift "Sumit's%20iPhone"

This will show pairing alert for Sumit's iPhone.