Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gamera_videos_no_ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liusq
gamera_videos_no_ui
Commits
d18f6f37
Commit
d18f6f37
authored
Oct 11, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改WIFI判断05
parent
db1c6958
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
NonConnectedCameraHandle.cpp
+7
-7
No files found.
NonConnectedCameraHandle.cpp
View file @
d18f6f37
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment