Meshtastic-Apple/MeshtasticClient/Model/PeripheralModel.swift

21 lines
446 B
Swift
Raw Normal View History

import Foundation
import CoreBluetooth
2021-10-14 20:36:06 -07:00
struct Peripheral: Identifiable {
var id: String
var name: String
var rssi: Int
var peripheral: CBPeripheral
var myInfo: MyInfoModel?
init(id: String, name: String, rssi: Int, peripheral: CBPeripheral, myInfo: MyInfoModel?) {
self.id = id
self.name = name
self.rssi = rssi
self.peripheral = peripheral
self.myInfo = myInfo
}
}
2021-10-12 17:54:10 -07:00