暂存
This commit is contained in:
1 parent
558fb16160
commit
f92b623349
14 files changed
+696
-597
No files matched your search
@@ -25,7 +25,13 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
private BleCharacteristicInfo tacxFecWriteCharacteristic;
|
||||
|
||||
private TacxFecWrite tacxFecWrite;
|
||||
|
||||
private List<Guid> otherGuids = new List<Guid>()
|
||||
{
|
||||
new Guid("0000fff0-0000-1000-8000-00805f9b34fb"),
|
||||
new Guid("0000180a-0000-1000-8000-00805f9b34fb"),
|
||||
new Guid("00001826-0000-1000-8000-00805f9b34fb"),
|
||||
new Guid("c1fe406e-a3b5-93f3-e0a9-e50e24dcca9e"),
|
||||
};
|
||||
/// <summary>
|
||||
/// 当前坡度,当切换到其他模式的时候,需要把坡度设置为0
|
||||
/// </summary>
|
||||
@@ -35,7 +41,6 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
{
|
||||
tacxFecNotify = new TacxFecNotify();
|
||||
base.Characteristics.Add(tacxFecNotify);
|
||||
|
||||
tacxFecWrite = new TacxFecWrite();
|
||||
base.Characteristics.Add(tacxFecWrite);
|
||||
|
||||
@@ -80,7 +85,7 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
{
|
||||
foreach (var item in base.Characteristics)
|
||||
{
|
||||
if (characteristic.MatchGuid(item.Uuid))
|
||||
if (characteristic.MatchGuid(item.Uuid) || otherGuids.Contains(item.Uuid))
|
||||
{
|
||||
//Debug.Log(string.Join(",", response.Data));
|
||||
item.HandleAttributeReceived(response.Data);
|
||||
|
||||
Reference in new issue
Block a user