Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
78430c8d
Commit
78430c8d
authored
9 years ago
by
davide
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for dmled1 status
parent
3a1812be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
ikapserver.py
domotika/ikapserver.py
+27
-0
No files found.
domotika/ikapserver.py
View file @
78430c8d
...
...
@@ -287,6 +287,33 @@ class DomIkaBaseProtocol(object):
self
.
core
.
updateBoardLastStatus
(
host
,
port
,
ptype
,
src
)
if
msg_fwtype
==
C
.
FWTYPE_DMLED4
:
rawio
=
list
(
""
.
join
(
[
""
.
join
(
revlist
(
list
(
bin
(
x
)
.
replace
(
"0b"
,
""
)
.
zfill
(
8
))))
for
x
in
iter
(
astr
[
5
:
9
])]))
rawinp
=
rawio
[
16
:
28
]
map
(
lambda
x
,
y
:
reactor
.
callLater
(
0.05
,
self
.
core
.
setInputStatus
,
src
,
host
,
port
,
ptype
,
x
,
str
(
int
(
y
))),
xrange
(
1
,
11
),
iter
(
rawinp
))
larg
=
len
(
arg
)
self
.
core
.
updateBoardLastStatus
(
host
,
port
,
ptype
,
src
)
if
msg_fwtype
==
C
.
FWTYPE_DMLED
:
rawio
=
list
(
""
.
join
(
[
""
.
join
(
revlist
(
list
(
bin
(
x
)
.
replace
(
"0b"
,
""
)
.
zfill
(
8
))))
for
x
in
iter
(
astr
[
5
:
9
])]))
rawinp
=
rawio
[
16
:
28
]
map
(
lambda
x
,
y
:
reactor
.
callLater
(
0.05
,
self
.
core
.
setInputStatus
,
src
,
host
,
port
,
ptype
,
x
,
str
(
int
(
y
))),
xrange
(
1
,
4
),
iter
(
rawinp
))
larg
=
len
(
arg
)
self
.
core
.
updateBoardLastStatus
(
host
,
port
,
ptype
,
src
)
if
msg_fwtype
==
C
.
FWTYPE_RELAYMASTERANA
:
rawio
=
list
(
""
.
join
(
[
""
.
join
(
revlist
(
list
(
bin
(
x
)
.
replace
(
"0b"
,
""
)
.
zfill
(
8
))))
for
x
in
iter
(
astr
[
5
:
9
])]))
...
...
This diff is collapsed.
Click to expand it.
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