Meshtastic-Apple/MeshtasticClient/Model/PacketModel.swift

23 lines
522 B
Swift
Raw Normal View History

2021-09-23 22:11:24 -07:00
struct PacketModel: Identifiable {
var id: UInt32
var from: UInt32
var to: UInt32
var channel: UInt32
var rxTime: UInt32
var hopLimit: UInt32
var wantAck: Bool
2021-09-23 07:48:25 -07:00
2021-09-23 22:11:24 -07:00
init(id: UInt32, from: UInt32, to: UInt32, channel: UInt32, rxTime: UInt32, hopLimit: UInt32, wantAck: Bool) {
self.id = id
self.from = from
self.to = to
self.channel = channel
self.rxTime = rxTime
self.hopLimit = hopLimit
self.wantAck = wantAck
}
}