xcDeviceSystemFunctionAbility method
获取设备能力级
Implementation
Future<Map> xcDeviceSystemFunctionAbility({required String deviceId}) async {
final OriginResponse result = await _api.devGetSysConfig(deviceId,
'SystemFunction', 1360, 5000, ApiSeq.instance.getSeq()); //1360 1650
if (kDebugMode) {
XCloudResponse.fromOriginResponse(result);
}
if (result.param1 < 0) {
return Future.error(
XCloudAPIException(code: result.param1, commandId: result.commandId));
}
if (result.byteStream == null) {
return {};
}
String byteString = XCloudResponse.byteToString(result.byteStream);
return json.decode(byteString);
}