Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将在我的应用程序中使用核心蓝牙框架。但我想知道在这种情况下我何时与另一个长时间连接的 BLE 设备如何处理电池电量,因为连接时它会降低得太快。
这是获取电池电量的示例
UIDevice *device = [UIDevice currentDevice]; [device setBatteryMonitoringEnabled:YES]; float level = [device batteryLevel];