Commit d18f6f37 by “liusq”

修改WIFI判断05

parent db1c6958
...@@ -156,12 +156,12 @@ bool NonConnectedCameraHandle::wifiChangeIp(QString &Ip, ...@@ -156,12 +156,12 @@ bool NonConnectedCameraHandle::wifiChangeIp(QString &Ip,
XSDK_CFG::NetWork_Wifi wif; XSDK_CFG::NetWork_Wifi wif;
printWifi(h_device,wif); printWifi(h_device,wif);
// if(is_connect){ // if(is_connect){
// if(!isWifiConnect(h_device,wif)){ // if(!isWifiConnect(h_device,wif)){
// qInfo()<<QString("SN(%1): 不是wifi连接").arg(sSn); // qInfo()<<QString("SN(%1): 不是wifi连接").arg(sSn);
// return false; // return false;
// } // }
// } // }
QString hex=instace.DecIpToHexIp(Ip); QString hex=instace.DecIpToHexIp(Ip);
QByteArray && byIp = hex.toUtf8(); QByteArray && byIp = hex.toUtf8();
...@@ -176,7 +176,7 @@ bool NonConnectedCameraHandle::wifiChangeIp(QString &Ip, ...@@ -176,7 +176,7 @@ bool NonConnectedCameraHandle::wifiChangeIp(QString &Ip,
char szOutBuffer[512] = { 0 }; char szOutBuffer[512] = { 0 };
int nLen = sizeof(szOutBuffer); int nLen = sizeof(szOutBuffer);
int res =XSDK_DevSetSysConfigSyn(h_device, JK_NetWork_Wifi, wipCfg, strlen(wipCfg), szOutBuffer, &nLen, 3000, EXCMD_CONFIG_SET); int res =XSDK_DevSetSysConfigSyn(h_device, JK_NetWork_Wifi, wipCfg, strlen(wipCfg), szOutBuffer, &nLen, 3000, EXCMD_CONFIG_SET);
if(res<0){ if(res<0 && res!=-99991){
qInfo()<<QString("SN(%1): 无线修改wifi失败:%2").arg(sSn).arg(res); qInfo()<<QString("SN(%1): 无线修改wifi失败:%2").arg(sSn).arg(res);
return false; return false;
} }
......
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