This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Corrected a code refactor error which make the MQTT messages not handling position from received messages. Added comment to debug tab to show how to enable debug
Eric Chauvet
4 years ago
parent
42f981871d
commit
56888b1d4e
4 changed files
with
1709 additions
and
1704 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
code/espurna/curtain_kingart.cpp
BIN
code/espurna/data/index.curtain.html.gz
+1705
-1703
code/espurna/static/index.curtain.html.gz.h
+3
-0
code/html/index.html
+ 1
- 1
code/espurna/curtain_kingart.cpp
View File
@ -359,7 +359,7 @@ void _curtainMQTTCallback(unsigned int type, const char * topic, char * payload)
else
if
(
strcmp
(
payload
,
"
off
"
)
=
=
0
)
_KACurtainSet
(
CURTAIN_BUTTON_CLOSE
)
;
else
{
_curtain_position_set
=
t
.
toInt
(
)
;
_curtain_position_set
=
S
t
ring
(
payload
)
.
toInt
(
)
;
_KACurtainSet
(
CURTAIN_BUTTON_UNKNOWN
,
_curtain_position_set
)
;
}
BIN
code/espurna/data/index.curtain.html.gz
View File
+ 1705
- 1703
code/espurna/static/index.curtain.html.gz.h
File diff suppressed because it is too large
View File
+ 3
- 0
code/html/index.html
View File
@ -1562,6 +1562,9 @@
<
div
class
=
"pure-g module module-cmd"
>
<
div
class
=
"pure-u-1 hint"
>
Write a command and click send to execute it on the device. The output will be shown in the debug text area below.
<!--
removeIf(!curtain)
-->
Type "debug" to display MCU serial exchanges. Any other command is sent to MCU serial as is.
<!--
endRemoveIf(!curtain)
-->
<
/
div
>
<
input
name
=
"dbgcmd"
class
=
"pure-u-3-4"
type
=
"text"
tabindex
=
"2"
/
>
<
div
class
=
"pure-u-1-4 pure-u-lg-1-4"
>
<
button
type
=
"button"
class
=
"pure-button button-dbgcmd pure-u-23-24"
>
Send
<
/
button
>
<
/
div
>
Write
Preview
Loading…
Cancel
Save