Skip to content

madcat-core/ble-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ble-scan

macOS BLE scanner. Discovers nearby Bluetooth Low Energy devices and reports name, RSSI, connectable status, advertised services, and manufacturer data.

Build

make build

Run

CLI binary requires Bluetooth permission. Two options:

Option A — app bundle (recommended for first run, triggers macOS permission dialog):

make app
open BLEScan.app

Option B — direct (works after permission is granted to the parent terminal):

.build/release/ble-scan

Options

-d, --duration <seconds>   Scan duration (default: 8)
-o, --output <path>        Write results to file
-j, --json                 Output as JSON
-h, --help                 Show this help

Examples

# 15-second scan, JSON output
ble-scan -d 15 -j

# Save results to file
ble-scan -o scan.txt

# Quick 3-second sweep
ble-scan -d 3

Requirements

  • macOS 13+
  • Swift 5.9+
  • Bluetooth permission (granted on first .app launch)

About

macOS BLE scanner — CoreBluetooth, connectable flag, JSON output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors