mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-01-18 16:56:33 +00:00
20201223-release (#39)
This commit is contained in:
parent
8b75c1fc6f
commit
9e6e4604ef
1 changed files with 9 additions and 3 deletions
|
@ -164,18 +164,24 @@ public class BLEDevice : NSObject {
|
||||||
/// Service characteristic for signalling between BLE devices, e.g. to keep awake
|
/// Service characteristic for signalling between BLE devices, e.g. to keep awake
|
||||||
var signalCharacteristic: CBCharacteristic? {
|
var signalCharacteristic: CBCharacteristic? {
|
||||||
didSet {
|
didSet {
|
||||||
lastUpdatedAt = Date()
|
if signalCharacteristic != nil {
|
||||||
|
lastUpdatedAt = Date()
|
||||||
|
}
|
||||||
delegate.device(self, didUpdate: .signalCharacteristic)
|
delegate.device(self, didUpdate: .signalCharacteristic)
|
||||||
}}
|
}}
|
||||||
/// Service characteristic for reading payload data
|
/// Service characteristic for reading payload data
|
||||||
var payloadCharacteristic: CBCharacteristic? {
|
var payloadCharacteristic: CBCharacteristic? {
|
||||||
didSet {
|
didSet {
|
||||||
lastUpdatedAt = Date()
|
if payloadCharacteristic != nil {
|
||||||
|
lastUpdatedAt = Date()
|
||||||
|
}
|
||||||
delegate.device(self, didUpdate: .payloadCharacteristic)
|
delegate.device(self, didUpdate: .payloadCharacteristic)
|
||||||
}}
|
}}
|
||||||
var legacyPayloadCharacteristic: CBCharacteristic? {
|
var legacyPayloadCharacteristic: CBCharacteristic? {
|
||||||
didSet {
|
didSet {
|
||||||
lastUpdatedAt = Date()
|
if legacyPayloadCharacteristic != nil {
|
||||||
|
lastUpdatedAt = Date()
|
||||||
|
}
|
||||||
delegate.device(self, didUpdate: .payloadCharacteristic)
|
delegate.device(self, didUpdate: .payloadCharacteristic)
|
||||||
}}
|
}}
|
||||||
/// Device operating system, this is necessary for selecting different interaction procedures for each platform.
|
/// Device operating system, this is necessary for selecting different interaction procedures for each platform.
|
||||||
|
|
Loading…
Reference in a new issue