Meshtastic-Apple/MeshtasticClient/Model/PeripheralModel.swift
Garth Vander Houwen 233fb0a1e0 Display time only from mesh, remove all times set in the iOS app.
Add Bitrate
Format assorted things.
Fix battery display on node details
make node list more friendly on iPad and mac
2022-05-25 22:30:48 -07:00

34 lines
967 B
Swift

import Foundation
import CoreBluetooth
struct Peripheral: Identifiable {
var id: String
var num: Int64
var name: String
var shortName: String
var longName: String
var firmwareVersion: String
var rssi: Int
var bitrate: Float?
var channelUtilization: Float?
var airTime: Float?
var lastUpdate: Date
var subscribed: Bool
var peripheral: CBPeripheral
init(id: String, num: Int64, name: String, shortName: String, longName: String, firmwareVersion: String, rssi: Int, bitrate: Float?, channelUtilization: Float?, airTime: Float?, lastUpdate: Date, subscribed: Bool, peripheral: CBPeripheral) {
self.id = id
self.num = num
self.name = name
self.shortName = shortName
self.longName = longName
self.firmwareVersion = firmwareVersion
self.rssi = rssi
self.bitrate = bitrate
self.channelUtilization = channelUtilization
self.airTime = airTime
self.lastUpdate = lastUpdate
self.subscribed = subscribed
self.peripheral = peripheral
}
}