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
commit
56888b1d4e
4 changed files with 1709 additions and 1704 deletions
  1. +1
    -1
      code/espurna/curtain_kingart.cpp
  2. BIN
      code/espurna/data/index.curtain.html.gz
  3. +1705
    -1703
      code/espurna/static/index.curtain.html.gz.h
  4. +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 = String(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>


Loading…
Cancel
Save