Skip to content

Commit

Permalink
v1.22:
Browse files Browse the repository at this point in the history
* Fixes invalid JSON responses/escaping (fixes #153)
* Fixes MQTT-Reconnect

Code Changes in dependant WAdapter Library
  • Loading branch information
fashberg committed Oct 2, 2022
1 parent 4d012ef commit 18d441c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions WThermostat/WBecaDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ class WBecaDevice: public WDevice {
buf[i]=receivedCommand[6+i];
}
buf[len]=0;
this->mcuId->setString(buf);
this->mcuId->setString(buf);
if (mcuInitializeState==2) mcuInitializeState++;
network->log()->notice(F("Product ID: '%s'"), buf);

Expand Down Expand Up @@ -2227,7 +2227,9 @@ class WBecaDevice: public WDevice {
htmlTableRowEnd(page);

htmlTableRowTitle(page, F("MCU-ID:"));
page->print(this->mcuId->c_str());
char * mcuid=htmlEscape(this->mcuId->c_str());
page->print(mcuid);
free(mcuid);
htmlTableRowEnd(page);

htmlTableRowTitle(page, F("Device On:"));
Expand Down
2 changes: 1 addition & 1 deletion lib/WAdapter
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default_envs = wthermostat
[common]
# appversion is just devel, during github-actions its set to branch-date-hash or tagname by platformio_override.ini
# you can set your own in your local platformio_override.ini (see platformio_override.sample.ini)
appversion = 1.21.dev
appversion = 1.22.dev
framework = arduino
board = esp01_1m
board_build.flash_mode = dout
Expand Down

0 comments on commit 18d441c

Please sign in to comment.