accessory-setup-kit
Installation
SKILL.md
AccessorySetupKit
What to open
- Use
accessory-setup-kit/accessorysetupkit.mdfor all API details and key names. - Use
accessory-setup-kit/AccessorySetupKitEverythingBLEDevelopersNeedToKnow.mdfor BLE-specific behavior notes and real-world details. - Search within it for: "Discovering and configuring accessories",
ASAccessorySession,ASDiscoveryDescriptor,ASPickerDisplayItem,ASMigrationDisplayItem,ASPickerDisplaySettings, andASAccessoryEventType.
Workflow
- Identify whether the accessory uses Bluetooth, Wi-Fi, or Wi-Fi Aware and set up matching discovery properties.
- Declare required Info.plist keys for AccessorySetupKit and any Bluetooth identifiers.
- Create and activate
ASAccessorySession, then handle events on the provided queue. - Present a picker with
ASPickerDisplayItemitems that match the accessories you support. - Handle
.accessoryAddedto connect to the selected device; handle.accessoryRemovedand.accessoryChangedas needed.