DexcomG7HeartBeat.swift 946 B

123456789101112131415161718192021222324252627282930313233
  1. // LoopFollow
  2. // DexcomG7HeartBeat.swift
  3. // Created by Jonas Björkert on 2025-01-13.
  4. // Denna behövs
  5. import Foundation
  6. /// A simple class to represent the Dexcom G7 Heartbeat.
  7. /// It wraps around a `BLEPeripheral` to store relevant information.
  8. public class DexcomG7HeartBeat {
  9. // MARK: - Properties
  10. /// The BLEPeripheral instance associated with this heartbeat.
  11. public let blePeripheral: BLEPeripheral
  12. // MARK: - Initialization
  13. /// Initializes a new DexcomG7HeartBeat instance.
  14. /// - Parameters:
  15. /// - address: The unique address of the BLE device.
  16. /// - name: The name of the BLE device.
  17. /// - alias: An optional alias for the device.
  18. public init(address: String, name: String, alias: String? = nil) {
  19. blePeripheral = BLEPeripheral(
  20. address: address,
  21. name: name,
  22. alias: alias,
  23. peripheralType: .DexcomG7HeartBeatType
  24. )
  25. }
  26. }