支持蓝牙可用状态变更。搜索不到设备自动停止当前线程。
This commit is contained in:
1 parent
dd474f1f61
commit
734893ff83
27 files changed
+290
-143
No files matched your search
@@ -56,7 +56,7 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log(item.GetType() + "服务可用");
|
||||
//Debug.Log(item.GetType() + "服务可用");
|
||||
|
||||
GetBatteryLevel(ccc);
|
||||
}
|
||||
|
||||
@@ -51,6 +51,10 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
{
|
||||
hwInterface.DiscoverCharacteristic(service, (hwInterface, service1, response) =>
|
||||
{
|
||||
if(!base.CheckPendingServiceCharacteristicsResponse(service1, response))
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (var character in response.Data)
|
||||
{
|
||||
if (character.MatchGuid(ServiceUuids.Characteristics.TacxFecRead))
|
||||
|
||||
Reference in new issue
Block a user