Meshtastic-Apple/MeshtasticClient/Model/MyInfoModel.swift

28 lines
879 B
Swift
Raw Normal View History

import Foundation
struct MyInfoModel: Identifiable, Codable {
2021-10-14 20:36:06 -07:00
// Uses the BLE Peripheral identifier as the ID
// So myInfo can map between Peripherals and Nodes
var id: UInt32
var myNodeNum: UInt32
var hasGps: Bool
var numBands: UInt32
var maxChannels: UInt32
var firmwareVersion: String
var messageTimeoutMsec: UInt32
var minAppVersion: UInt32
init(myNodeNum: UInt32, hasGps: Bool, numBands: UInt32, maxChannels: UInt32, firmwareVersion: String, messageTimeoutMsec: UInt32, minAppVersion: UInt32) {
2021-09-21 20:49:12 -07:00
self.id = myNodeNum
2021-09-21 20:49:12 -07:00
self.myNodeNum = myNodeNum
self.hasGps = hasGps
self.numBands = numBands
self.maxChannels = maxChannels
self.firmwareVersion = firmwareVersion
self.messageTimeoutMsec = messageTimeoutMsec
self.minAppVersion = minAppVersion
}
}