Skip to content

Instantly share code, notes, and snippets.

View blainerothrock's full-sized avatar

Blaine Rothrock blainerothrock

View GitHub Profile
@blainerothrock
blainerothrock / flexible-sample.json
Last active August 29, 2022 19:30
flexible-sample.json
{
"id": "flexible-sample",
"schema_version": "1.0",
"created_at": "2022-04-13T22:11:39.000Z",
"updated_at": "2022-04-13T22:11:39.000Z",
"tags": ["development"],
"ble_registered_devices": [
{
"name": "Polar H10 821A5D29",
"services": ["heart-rate", "battery"],
import Foundation
import CoreBluetooth
/*
This Swift script scans for Bluetooth devices and prints information about the active Bluetooth adapter.
It uses the CoreBluetooth framework to manage Bluetooth operations and the system_profiler command to fetch adapter details.
To compile & run:
```bash
swiftc -framework CoreBluetooth main.swift -o BLEScanner