Skip to content

Commit

Permalink
MQTT topics 31->128 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
erstec committed Mar 8, 2024
1 parent 206f9d4 commit e9a673f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ SOFTWARE.
// Start Settings
//******************************

#define PRINTER_MON
// #define PRINTER_MON

// OctoPrint / Repetier Monitoring -- Monitor your 3D OctoPrint or Repetier Server
//#define USE_REPETIER_CLIENT // Uncomment this line to use the Repetier Printer Server -- OctoPrint is used by default and is most common
Expand Down
6 changes: 3 additions & 3 deletions src/printermonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ TimeChangeRule myDST = {"SEET", Last, Sun, Mar, 3, +180}; // Daylight time = +
TimeChangeRule mySTD = {"WEET", Last, Sun, Oct, 2, +120}; // Standard time = +2 hours
Timezone myTZ(myDST, mySTD);

#define VERSION "3.7"
#define VERSION "3.8"

#if defined(PRINTER_MON)
#define HOSTNAME "PrintMon-"
Expand Down Expand Up @@ -226,9 +226,9 @@ static const char WEATHER_FORM[] PROGMEM = "<form class='w3-container' action='/
"<label>MQTT Password</label>"
"<input class='w3-input w3-border w3-margin-bottom' type='text' name='mqttPsw' value='%MQTT_PSW%' maxlength='16'>"
"<label>MQTT Temperature Topic</label>"
"<input class='w3-input w3-border w3-margin-bottom' type='text' name='mqttTempTopic' value='%MQTT_TEMP_TOPIC%' maxlength='31'>"
"<input class='w3-input w3-border w3-margin-bottom' type='text' name='mqttTempTopic' value='%MQTT_TEMP_TOPIC%' maxlength='128'>"
"<label>MQTT LWT Topic</label>"
"<input class='w3-input w3-border w3-margin-bottom' type='text' name='mqttLwtTopic' value='%MQTT_LWT_TOPIC%' maxlength='31'>"
"<input class='w3-input w3-border w3-margin-bottom' type='text' name='mqttLwtTopic' value='%MQTT_LWT_TOPIC%' maxlength='128'>"
"<button class='w3-button w3-block w3-grey w3-section w3-padding' type='submit'>Save and Reboot</button></form>"
"<script>function isNumberKey(e){var h=e.which?e.which:event.keyCode;return!(h>31&&(h<48||h>57))}</script>";

Expand Down

0 comments on commit e9a673f

Please sign in to comment.