mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
21 lines
459 B
Swift
21 lines
459 B
Swift
import Foundation
|
|
import CoreBluetooth
|
|
|
|
struct Peripheral: Identifiable {
|
|
var id: String
|
|
var name: String
|
|
var rssi: Int
|
|
var subscribed: Bool
|
|
var peripheral: CBPeripheral
|
|
|
|
var myInfo: MyInfoModel?
|
|
|
|
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
|
|
}
|
|
}
|