* Run the Homeassistant Discovery directly after connecting to the broker. Before it was delayed 10s and happened while the first round alredy was in progress
* schedule sending HA discovery and static topics
* Allow setting QOS for MQTT topics
* .
* .
* change MQTT QOS1 expiration time from (default) 30 to 5s
* add logging of heap change on MQTT topic sendings
* wait for MQTT transmission timeout after publishing
* use QOS0 for Homeassistant Discovery topics. the messages then could possibly get lost but we save a lot of heap
* .
* use PSRAM for the MQTT outbox
* use QOS1 for HA discovery again
* .
* .
* disable delay, not needed with PSRAM
* .
* consolidated scheduledSendingOf_DiscoveryAndStaticTopics into sendingOf_DiscoveryAndStaticTopics_scheduled
* Send Homeasstsiatnt Discovery and static data in MQTT step instead of when the wifi gets connected
* "WIFI roaming" by channel scan (AP switching at low RSSI) (#2120)
* Activate 802.11kv wifi mesh roaming
* Activate roaming by scanning
* Revert stack reducation
* move Wifi, LWIP and BSSI to PSRAm
* added State Class "measurement" to rate_per_time_unit (#2116)
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* use QOS0 for Homeassistant Discovery topics. the messages then could possibly get lost but we save a lot of heap
* use QOS0 for Homeassistant Discovery topics. the messages then could possibly get lost but we save a lot of heap
# Conflicts:
# code/components/jomjol_mqtt/server_mqtt.cpp
# Conflicts:
# code/components/jomjol_mqtt/server_mqtt.cpp
* .
* .
* move to next PR
* Update code/components/jomjol_mqtt/server_mqtt.cpp
* Update code/components/jomjol_mqtt/server_mqtt.cpp
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
Co-authored-by: Slider0007 <115730895+Slider0007@users.noreply.github.com>
* moved functions
* use hostname as default MQTT maintopic if parameter is not set
* use hostname as default MQTT client ID
* Only send Homassistant Discovery and Static Topics on the first connect. Retry in next round if any topic failed
* .
* add missing return code usage
* send maintopic/connection on every round like the system topics
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* defines changes
* Finish #define move + #define STBI_ONLY_JPEGsave 2% of Flash
* remove the defines on the old places
* ClassFlowCNNGeneral in define.h
* revert to origin
* fix translation not ready
* manual re-creation of #1246
* removed non-working approach to get interval
* postpone the MQTT service start until the ClassFlowControll::ReadParameter() gets called
* Increase the max_uri_handlers to 35 (was 30)
* removed newlines in logs
* added parameter to UI
* Register handler to re-start MQTT Discovery
* fix param