Commit d1fa0a6d by “liusq”

超时去掉图片

parent e5fe3f20
...@@ -986,6 +986,22 @@ void CameraHandle::sdkEncodeCfg(const char* pCfg){ ...@@ -986,6 +986,22 @@ void CameraHandle::sdkEncodeCfg(const char* pCfg){
qInfo() << "sdkEncodeCfg 配置编码设置->修改失败"<<res; qInfo() << "sdkEncodeCfg 配置编码设置->修改失败"<<res;
} }
} }
int CameraHandle::updateSdkDevStatus(bool status){
char szOutBuffer[40960]={ 0 };
int nInOutSize = sizeof(szOutBuffer);
int res= XSDK_DevGetSysConfigSyn(hDevice,JK_NetWork_SPVMN,szOutBuffer,&nInOutSize,4000,EXCMD_CONFIG_GET);
if(res<0){
qInfo() << sSn<<"GB28181可远程开关"<<res;
return 0 ;
}
XSDK_CFG::NetWork_SPVMN config;
config.Parse(szOutBuffer);
config.bCsEnable.SetValue(status);
const char* pCfg = config.ToString();
sdkDevSpvMn(pCfg);
return res;
}
void CameraHandle::updateSdkDevSpvMn(vides_data::responseGb28181 *gb28181){ void CameraHandle::updateSdkDevSpvMn(vides_data::responseGb28181 *gb28181){
char szOutBuffer[40960]={ 0 }; char szOutBuffer[40960]={ 0 };
int nInOutSize = sizeof(szOutBuffer); int nInOutSize = sizeof(szOutBuffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment