Commit 6b762826 by “liusq”

修改WIFI判断02

parent 3a3a0834
...@@ -1019,7 +1019,8 @@ void CameraHandle::printWifi(XSDK_HANDLE hDevice,XSDK_CFG::NetWork_Wifi &cfg){ ...@@ -1019,7 +1019,8 @@ void CameraHandle::printWifi(XSDK_HANDLE hDevice,XSDK_CFG::NetWork_Wifi &cfg){
*/ */
int CameraHandle::resetGb28181(){ int CameraHandle::resetGb28181(){
NonConnectedCameraHandle *connectedCameraHandle =NonConnectedCameraHandle::getInstance(); NonConnectedCameraHandle *connectedCameraHandle =NonConnectedCameraHandle::getInstance();
int old=hDevice; int old=this->hDevice;
qInfo()<<QString("SN(%1): resetGb28181老句柄%2").arg(sSn).arg(old);
MainWindow::sp_this->setIsResetting(true); MainWindow::sp_this->setIsResetting(true);
bool is_wifi=false; bool is_wifi=false;
...@@ -1048,6 +1049,8 @@ int CameraHandle::resetGb28181(){ ...@@ -1048,6 +1049,8 @@ int CameraHandle::resetGb28181(){
bool result= connectedCameraHandle->changeCameraIp(device); bool result= connectedCameraHandle->changeCameraIp(device);
int newHandle=-1; int newHandle=-1;
if(!result ){ if(!result ){
qInfo()<<QString("SN(%1): WIFI修改的前的句柄%2").arg(sSn).arg(old);
result=connectedCameraHandle->wifiChangeIp(reachableIp,old,sSn); result=connectedCameraHandle->wifiChangeIp(reachableIp,old,sSn);
is_wifi=true; is_wifi=true;
if(result){ if(result){
......
...@@ -212,7 +212,6 @@ private : ...@@ -212,7 +212,6 @@ private :
std::atomic<bool> isOperateGb28181{false}; std::atomic<bool> isOperateGb28181{false};
uint64 face_frequency; uint64 face_frequency;
__uint8_t algorithmPermissions; __uint8_t algorithmPermissions;
......
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