mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
dont queue publish on change if not connected, keep flag
This commit is contained in:
@@ -1,11 +1,19 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [3.6.1]
|
## [3.6.2]
|
||||||
|
|
||||||
## **IMPORTANT! BREAKING CHANGES**
|
## **IMPORTANT! BREAKING CHANGES**
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
||||||
|
- power entities
|
||||||
|
- optional input of BSSID for AP connection
|
||||||
|
- message "no entries" in info of scheduler/custom/analogsnesor/temperaturesensor
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
|
- wifi full scan to get strongest AP
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
||||||
|
- dont queue publish on change messages, but keep changed flag to send after reconnect
|
||||||
|
|||||||
@@ -927,9 +927,12 @@ bool EMSESP::process_telegram(std::shared_ptr<const Telegram> telegram) {
|
|||||||
if (telegram->type_id == publish_id_) {
|
if (telegram->type_id == publish_id_) {
|
||||||
publish_id_ = 0;
|
publish_id_ = 0;
|
||||||
}
|
}
|
||||||
emsdevice->has_update(false); // reset flag
|
// dont publish if not connected and don't reset flag, so publish is done after reconnect
|
||||||
if (!Mqtt::publish_single()) {
|
if (Mqtt::connected()) {
|
||||||
publish_device_values(emsdevice->device_type()); // publish to MQTT if we explicitly have too
|
emsdevice->has_update(false); // reset flag
|
||||||
|
if (!Mqtt::publish_single()) {
|
||||||
|
publish_device_values(emsdevice->device_type()); // publish to MQTT if we explicitly have too
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define EMSESP_APP_VERSION "3.6.2-dev.0a"
|
#define EMSESP_APP_VERSION "3.6.2-dev.0b"
|
||||||
|
|||||||
Reference in New Issue
Block a user