Skip to content

Commit

Permalink
fix refresh for opt topics
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorYbema committed Jan 16, 2025
1 parent 6dba095 commit f6749f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HeishaMon/decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ void decode_optional_heatpump_data(char* data, char* actOptData, PubSubClient &
} else {
sprintf_P(log_msg, PSTR("{\"data\": {\"heishavalues\": {\"topic\": \"OPT%u\", \"value\": %s, \"description\": \"%s\"}}}"), Topic_Number, dataValue.c_str(),opttopicDescription[Topic_Number][dataValue.toInt() + 1]);
}
websocket_write_all(log_msg, strlen(log_msg));
rules_event_cb(_F("@"), optTopics[Topic_Number]);
}
}
Expand Down

0 comments on commit f6749f1

Please sign in to comment.