我每次都得到 100% 的结果……为什么(iOS/SocketScan API v.10.2.227)?这是我的代码:
-(void) onGetBatteryInfo:(ISktScanObject*)scanObj {
SKTRESULT result=[[scanObj Msg]Result];
if(SKTSUCCESS(result)){
long batteryLevel = SKTBATTERY_GETCURLEVEL([[scanObj Property] getUlong]);
NSLog(@"BatteryInfo %ld", batteryLevel);
[self setBatteryLevel:batteryLevel];
[self.tableView reloadData];
} else {
NSLog(@"ES-GetBatteryInfo set status returned the error %ld",result);
}
}
谢谢,马克