The HAPSee more
Devicecalls the methods of this delegate to report HAP related events. Implement this protocol in an app-specific object and use the methods to update your app. For example, you might want to show the device’s pairing state, or the value of certain characteristics.
public protocol DeviceDelegate : AnyObject