Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
186692c3
Commit
186692c3
authored
Sep 28, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gg
parent
e7d57b9a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
261 additions
and
101 deletions
+261
-101
bench_client_ex.cpp
examples/bench_client_ex/bench_client_ex.cpp
+253
-97
bench_client_ex.vcxproj.user
examples/bench_client_ex/bench_client_ex.vcxproj.user
+1
-1
ademco_packet.h
include/ademco_packet.h
+7
-3
No files found.
examples/bench_client_ex/bench_client_ex.cpp
View file @
186692c3
This diff is collapsed.
Click to expand it.
examples/bench_client_ex/bench_client_ex.vcxproj.user
View file @
186692c3
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<LocalDebuggerCommandArguments>
192.168.1.90 12345 2
12
861234567890 -1 30 10000 1
</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>
192.168.1.90 12345 2
60
861234567890 -1 30 10000 1
</LocalDebuggerCommandArguments>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
</PropertyGroup>
</PropertyGroup>
</Project>
</Project>
\ No newline at end of file
include/ademco_packet.h
View file @
186692c3
...
@@ -51,10 +51,14 @@ inline bool isValidZoneStrict(AdemcoZone zone) {
...
@@ -51,10 +51,14 @@ inline bool isValidZoneStrict(AdemcoZone zone) {
return
ZoneMin
<=
zone
&&
zone
<
ZoneSentinel
;
return
ZoneMin
<=
zone
&&
zone
<
ZoneSentinel
;
}
}
//! 三防区主机GG范围 1~3
//! 三防区主机
状态
GG范围 1~3
constexpr
AdemcoGG
gg
Min4ThreeSectionMachine
=
1
;
constexpr
AdemcoGG
GG
Min4ThreeSectionMachine
=
1
;
constexpr
AdemcoGG
gg
Max4ThreeSectionMachine
=
3
;
constexpr
AdemcoGG
GG
Max4ThreeSectionMachine
=
3
;
//! 是否合法的三防区主机状态GG
inline
bool
isValidGG4ThreeSectionMachineStatus
(
AdemcoGG
gg
)
{
return
GGMin4ThreeSectionMachine
<=
gg
&&
gg
<=
GGMax4ThreeSectionMachine
;
}
//! 安定宝数据包 data 段
//! 安定宝数据包 data 段
struct
AdemcoData
struct
AdemcoData
...
...
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