mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-01-18 08:46:34 +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
|
||||
var signalCharacteristic: CBCharacteristic? {
|
||||
didSet {
|
||||
lastUpdatedAt = Date()
|
||||
if signalCharacteristic != nil {
|
||||
lastUpdatedAt = Date()
|
||||
}
|
||||
delegate.device(self, didUpdate: .signalCharacteristic)
|
||||
}}
|
||||
/// Service characteristic for reading payload data
|
||||
var payloadCharacteristic: CBCharacteristic? {
|
||||
didSet {
|
||||
lastUpdatedAt = Date()
|
||||
if payloadCharacteristic != nil {
|
||||
lastUpdatedAt = Date()
|
||||
}
|
||||
delegate.device(self, didUpdate: .payloadCharacteristic)
|
||||
}}
|
||||
var legacyPayloadCharacteristic: CBCharacteristic? {
|
||||
didSet {
|
||||
lastUpdatedAt = Date()
|
||||
if legacyPayloadCharacteristic != nil {
|
||||
lastUpdatedAt = Date()
|
||||
}
|
||||
delegate.device(self, didUpdate: .payloadCharacteristic)
|
||||
}}
|
||||
/// Device operating system, this is necessary for selecting different interaction procedures for each platform.
|
||||
|
|
Loading…
Reference in a new issue