using Assets.Scripts.Devices.Ant; using Assets.Scripts.Devices.Ble; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assets.Scripts.Ble.Scan { /// /// 广播数据 /// public class BleAdvertisementInfo { public BlePeripheralInfo Peripheral { get; } public int Rssi { get; } public SensorType SensorType { get; } public BleAdvertisementInfo(BlePeripheralInfo peripheral, int rssi, bool connectible, List services, byte[] manufactureData, SensorType sensor) { this.Peripheral = peripheral; this.Rssi = rssi; //this.Connectible = connectible; this.services = services; //this.ManufactureData = manufactureData; this.SensorType = sensor; } private readonly List services; public IReadOnlyList Services { get { return this.services; } } } }