Files
GSFV2/ios/Classes/model/ScanDeviceInfo.swift
2024-04-10 12:51:20 +05:30

78 lines
1.5 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ScanDeviceInfo.swift
// flutter_swift
//
// Created by on 2022/10/9.
//
class ScanDeviceInfo:Codable{
init(deviceInfo:ICScanDeviceInfo){
name = deviceInfo.name
type = DeviceType.init(type:deviceInfo.type)
subType = DeviceSubType.init(type:deviceInfo.subType)
communicationType = DeviceCommunicationType.init(type:deviceInfo.communicationType)
macAddr = deviceInfo.macAddr
services = deviceInfo.services
rssi = deviceInfo.rssi
nodeId = deviceInfo.nodeId
st_no = deviceInfo.st_no
deviceFlag = deviceInfo.deviceFlag
}
/**
* 广
*/
var name: String?
/**
*
*/
var type: DeviceType?
/**
*
*/
var subType: DeviceSubType?
/**
*
*/
var communicationType: DeviceCommunicationType?
/**
* mac
*/
var macAddr: String?
/**
* ID
*/
var services: Array<String>?
/**
* (0:-128:)
*/
var rssi: Int?
/**
*
*/
var st_no: UInt?
/**
* ID
*/
var nodeId: UInt?
/**
* ,0
*/
var deviceFlag: UInt?
}