蓝牙监听调整
This commit is contained in:
1 parent
1020632757
commit
541aefe4dd
6 files changed
+25
-10
No files matched your search
@@ -46,6 +46,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
var bleDevice = _device as BleDevice;
|
||||
DeviceNumber = $"{ Helper.FormateMacAddress(bleDevice.Address) },{ ServiceUuids.GetBySensor(bleDevice.Sensor) }";
|
||||
ManufacturerName = bleDevice.Name + "," + bleDevice.Network + "," + bleDevice.Sensor;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,6 +112,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
protected AntConnector _antConnector;
|
||||
|
||||
public int? ManufacturerId { get; private set; }
|
||||
public string ManufacturerName { get; private set; }
|
||||
public string DeviceNumber { get; private set; }
|
||||
public int? AntModelId { get; private set; }
|
||||
|
||||
@@ -144,6 +146,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
var bleDevice =_device as BleDevice;
|
||||
DeviceNumber = $"{ bleDevice.Address },{ bleDevice.Sensor }";
|
||||
ManufacturerName = bleDevice.Name + " " + bleDevice.Network + " " + bleDevice.Sensor;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user