从命令行检查连接的蓝牙耳机的电池电量
我正在尝试从命令行检查无线耳机的电池电量。我遇到了一些 讨论,看来我需要做的就是输入以下内容: ioreg -c 'deviceName' |grep -i batterypercent 我使用的“ Powerbeats Wireless”和“ bluetoothaudiod”尝试了此命令'deviceName',但均未返回batterypercent。我试图ioreg -c bluetoothaudiod |grep -i battery获取有关电池的一般信息,并以此作为回应: | | +-o AppleSmartBatteryManager <class AppleSmartBatteryManager, id 0x100000250, registered, matched, active, busy 0 (0 ms), retain 7> | | +-o AppleSmartBattery <class AppleSmartBattery, id 0x100000252, registered, matched, active, busy 0 (0 ms), retain …