Commit 74ec523f by 郭峰

Merge branch 'feature-1007488' into 'release'

修改WIFI判断02

See merge request !63
parents 87088f59 6b762826
......@@ -1019,7 +1019,8 @@ void CameraHandle::printWifi(XSDK_HANDLE hDevice,XSDK_CFG::NetWork_Wifi &cfg){
*/
int CameraHandle::resetGb28181(){
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);
bool is_wifi=false;
......@@ -1048,6 +1049,8 @@ int CameraHandle::resetGb28181(){
bool result= connectedCameraHandle->changeCameraIp(device);
int newHandle=-1;
if(!result ){
qInfo()<<QString("SN(%1): WIFI修改的前的句柄%2").arg(sSn).arg(old);
result=connectedCameraHandle->wifiChangeIp(reachableIp,old,sSn);
is_wifi=true;
if(result){
......
......@@ -211,8 +211,7 @@ private :
std::atomic<uint64> faceCount;
std::atomic<bool> isOperateGb28181{false};
uint64 face_frequency;
__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