* improved MqTT
* fix menu active item
This commit is contained in:
lumapu 2023-04-28 23:43:00 +02:00
parent ad9fda4e28
commit f67a68e852
4 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,9 @@
# Development Changes # Development Changes
## 0.6.12 - 2023-04-28
* improved MqTT
* fix menu active item
## 0.6.11 - 2023-04-27 ## 0.6.11 - 2023-04-27
* added MqTT class for publishing all values in Arduino `loop` * added MqTT class for publishing all values in Arduino `loop`

View file

@ -13,7 +13,7 @@
//------------------------------------- //-------------------------------------
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 6 #define VERSION_MINOR 6
#define VERSION_PATCH 11 #define VERSION_PATCH 12
//------------------------------------- //-------------------------------------
typedef struct { typedef struct {

View file

@ -92,8 +92,10 @@ class PubMqttIvData {
mState = SEND_DATA; mState = SEND_DATA;
else if(mSendTotals) else if(mSendTotals)
mState = SEND_TOTALS; mState = SEND_TOTALS;
else else {
mState = IDLE; mSendList->pop();
mState = START;
}
} }
void stateSend() { void stateSend() {

View file

@ -78,7 +78,7 @@ function parseNav(obj) {
if(i == 2) if(i == 2)
continue; continue;
var l = document.getElementById("nav"+i); var l = document.getElementById("nav"+i);
if(window.location.pathname == "/" + l.href.split('/').pop()) if(window.location.pathname == "/" + l.href.substring(0, l.href.indexOf("?")).split('/').pop())
l.classList.add("active"); l.classList.add("active");
if(obj["menu_protEn"]) { if(obj["menu_protEn"]) {