RVS_BTDriver_Property
internal class RVS_BTDriver_Property : NSObject, RVS_BTDriver_PropertyProtocol
extension RVS_BTDriver_Property: RVS_BTDriverCommunicatorTools
This is one “property,” which maps to a bluetooth “characteristic.”
-
This is a read-only accessor for the object that “owns” this instance.
Declaration
Swift
internal weak var internal_owner: RVS_BTDriver_Service!
-
Simple check to see if this property has already been initialized.
Declaration
Swift
internal var isInitialized: Bool { get }
Return Value
True, if the property is no longer in the “holding pen,” which means that it has been initialized.
-
This is called when the property is updated.
Declaration
Swift
internal func executeUpdate()
-
Declaration
Swift
public internal(set) var rawValue: Data?
Return Value
The value, expressed as raw Data. Nil, if no value available (or not available as Data).
-
Declaration
Swift
public internal(set) var uuid: String
Return Value
The UUID of the value characteristic, as a String.
-
This is a read-only accessor for the object that “owns” this instance.
Declaration
Swift
public var owner: RVS_BTDriver_ServiceProtocol! { get }
-
Default does nothing.
Declaration
Swift
public var canBroadcast: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canRead: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canWrite: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canWriteWithResponse: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canWriteWithoutResponse: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canNotify: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canIndicate: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var canHaveAuthenticatedSignedWrites: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var isEncryptionRequiredForNotify: Bool { get set }
-
Default does nothing.
Declaration
Swift
public var isEncryptionRequiredForIndication: Bool { get set }
-
Declaration
Swift
public var value: RVS_BTDriver_PropertyProtocol_Type_Enum { get }
Return Value
The Value, but cast into a specific data type (selected by the enum).
-
This method will “kick the can” up to the driver, where the error will finally be sent to the delegate.
Declaration
Swift
internal func reportThisError(_ inError: RVS_BTDriver.Errors)
Parameters
inError
The error to be sent to the owner.