//
//  BleTarget.swift
//  PrinterDemo
//
//  Created by ldc on 2025/8/29.
//  Copyright © 2025 XiamenHY. All rights reserved.
//

import Foundation
import PrinterSDK
import RYCommunication

protocol BleTarget: AccessoryConvertable {
    
    var btName: String { get }
    
    var btMac: String { get }
    
    var btDistance: Int { get }
}

extension RYBleAccessory: BleTarget {
    
    var btName: String {
        name
    }

    var btMac: String {
        mac
    }

    var btDistance: Int {
        Int(distance)
    }
}
