RVS_BTDriver_PropertyProtocol
public protocol RVS_BTDriver_PropertyProtocol : AnyObject
This represents the public face of a “property,” which maps to a bluetooth “characteristic.”
-
REQUIRED: This is a read-only accessor for the object that “owns” this instance.
Declaration
Swift
var owner: RVS_BTDriver_ServiceProtocol! { get }
-
REQUIRED: The value, expressed as raw Data. Nil, if no value available (or not available as Data).
Declaration
Swift
var rawValue: Data? { get set }
-
REQUIRED: The Value, but cast into a specific data type (selected by the enum).
Declaration
Swift
var value: RVS_BTDriver_PropertyProtocol_Type_Enum { get }
-
REQUIRED: The user description of the value (if any). If none, the String will be empty.
Declaration
Swift
var description: String { get }
-
REQUIRED: The UUID of the value characteristic, as a String.
Declaration
Swift
var uuid: String { get set }
-
REQUIRED: True, if the characteristic can broadcast its value.
Declaration
Swift
var canBroadcast: Bool { get set }
-
REQUIRED: True, if the characteristic can be read.
Declaration
Swift
var canRead: Bool { get set }
-
REQUIRED: True, if the characteristic can be written, with or without a response.
Declaration
Swift
var canWrite: Bool { get set }
-
REQUIRED: True, if the characteristic can be written, with a response.
Declaration
Swift
var canWriteWithResponse: Bool { get set }
-
REQUIRED: True, if the characteristic can be written, without a response.
Declaration
Swift
var canWriteWithoutResponse: Bool { get set }
-
REQUIRED: True, if the characteristic can notify.
Declaration
Swift
var canNotify: Bool { get set }
-
REQUIRED: True, if the characteristic can indicate. The driver need sto respond to indications.
Declaration
Swift
var canIndicate: Bool { get set }
-
REQUIRED: True, if the characteristic can have authenticated signed writes, without a response.
Declaration
Swift
var canHaveAuthenticatedSignedWrites: Bool { get set }
-
REQUIRED: Only trusted devices can subscribe to notifications of this property.
Declaration
Swift
var isEncryptionRequiredForNotify: Bool { get set }
-
REQUIRED: Only trusted devices can see indications of this property.
Declaration
Swift
var isEncryptionRequiredForIndication: Bool { get set }