连接速度优化
authorliangzhenying <867174124@qq.com>
Mon, 23 Jun 2025 06:00:54 +0000 (14:00 +0800)
committerliangzhenying <867174124@qq.com>
Mon, 23 Jun 2025 06:00:54 +0000 (14:00 +0800)
MouseSdk/AiMouseSdk/Manager/BleManager.m
MouseSdk/AiMouseSdk/Manager/DeviceManger.m
MouseSdk/AiMouseSdk/Manager/TimerManager.m

index c8d992b..7c3c6c8 100644 (file)
@@ -76,6 +76,7 @@
             break;
         case CBManagerStatePoweredOn:
 //            [self autoConnectDevice];
+            [self open];
             break;
     }
 }
index 989b41c..55b4669 100644 (file)
@@ -53,7 +53,7 @@
 - (instancetype)init{
     self = [super init];
     if (self) {
-        self.version = @"MouseSdk_v2025052901";
+        self.version = @"MouseSdk_v2025061601";
     }
     return self;
 }
index 8895d2a..556807b 100644 (file)
@@ -32,7 +32,7 @@
 //        [[NSRunLoop currentRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes];
 //        [[NSRunLoop currentRunLoop] run];
 //    });
-    self.timer = [NSTimer scheduledTimerWithTimeInterval:8 target:self selector:@selector(timerAction) userInfo:nil repeats:true];
+    self.timer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(timerAction) userInfo:nil repeats:true];
 }
 
 - (void)timerAction{