AccessorySetupKit PIN code support

Hi,

I just watched session "10203" on "Meet AccessorySetupKit". In 09:13, it was mentioned that there is special UI for entering PIN codes / passphrases. How exactly is this UI triggered? And is there any UI for setting a pin during initial setup? I couldn't find any further information about any of this in the documentation.

Best, Klemens

Answered by Engineer in 791463022

On ASDiscoveryDescriptor you would need to indicate accessory supports pairing https://developer.apple.com/documentation/accessorysetupkit/asdiscoverydescriptor/supportedoptions

/*!
 * @property supportedOptions
 * @discussion Accessory capabilities.
 */
@property (readwrite, assign, nonatomic) ASAccessorySupportOptions supportedOptions;

https://developer.apple.com/documentation/accessorysetupkit/asaccessory/supportoptions

After you set the following option, depending on what accessory supports the correct pairing UI should show up

ASAccessorySupportBluetoothPairingLE       = ( 1U << 1 ), // Accessory supports Bluetooth Low Energy pairing.

On ASDiscoveryDescriptor you would need to indicate accessory supports pairing https://developer.apple.com/documentation/accessorysetupkit/asdiscoverydescriptor/supportedoptions

/*!
 * @property supportedOptions
 * @discussion Accessory capabilities.
 */
@property (readwrite, assign, nonatomic) ASAccessorySupportOptions supportedOptions;

https://developer.apple.com/documentation/accessorysetupkit/asaccessory/supportoptions

After you set the following option, depending on what accessory supports the correct pairing UI should show up

ASAccessorySupportBluetoothPairingLE       = ( 1U << 1 ), // Accessory supports Bluetooth Low Energy pairing.

嗨你是不是還有另一個身分?一個公務員組織的先人跳詐騙集團的身分!周 心琳、周 玉珍 有43塊雞塊嗎

AccessorySetupKit PIN code support
 
 
Q