xcDeviceSystemConfigNotLogin method
设备系统配置操作(不登录) deviceId 设备序列号或IP+Port commandName 配置命令字 configJs 设置的Json数据 configJsLength 设置的Json数据长度 nCmdReq 消息值 nTimeout 超时时间 nSeq 自定义值
Implementation
Future<dynamic> xcDeviceSystemConfigNotLogin(
{required String deviceId,
required String commandName,
required String configJs,
required int configJsLength,
required int cmdReq,
required int timeout}) async {
final result = await _api.xcDeviceSystemConfigNotLogin(
deviceId,
commandName,
configJs,
configJsLength,
cmdReq,
timeout,
ApiSeq.instance.getSeq());
if (kDebugMode) {
XCloudResponse.fromOriginResponse(result);
}
if (result.param1 < 0) {
return Future.error(
XCloudAPIException(code: result.param1, commandId: result.commandId));
}
if (result.byteStream == null) {
return '{}';
}
return XCloudResponse.byteToString(result.byteStream);
}