mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
20 lines
446 B
Swift
20 lines
446 B
Swift
import Foundation
|
|
import CoreBluetooth
|
|
|
|
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
|
|
}
|
|
}
|
|
|