Meshtastic-Apple/MeshtasticClient/Model/PeripheralModel.swift

22 lines
457 B
Swift
Raw Normal View History

import Foundation
import CoreBluetooth
2021-10-14 20:36:06 -07:00
struct Peripheral: Identifiable {
2021-11-16 10:14:20 -08:00
var id: String
var name: String
var rssi: Int
var subscribed: Bool
var peripheral: CBPeripheral
2021-11-29 15:59:06 -08:00
2021-11-16 10:14:20 -08:00
var myInfo: MyInfoModel?
2021-11-29 15:59:06 -08:00
2021-11-16 10:14:20 -08:00
init(id: String, name: String, rssi: Int, subscribed: Bool, peripheral: CBPeripheral, myInfo: MyInfoModel?) {
self.id = id
self.name = name
self.rssi = rssi
self.subscribed = subscribed
self.peripheral = peripheral
self.myInfo = myInfo
}
}