* derive correct node_id for homeassistant service discovery in nested topics (fixes#1792)
* explicit use of std::string
* move nodeId creation to separate function
add unit-tests
* add documentation about node_id generation for Home Assistant MQTT Service Discovery
- Update `esp-nn` to v1.0.2
- Update `esp32-camera` to v2.0.6
- Updated `tflite-micro-esp-examples` (The repo got renamed to `esp-tflite-micro ` and the folder structure got cleaned up).
3 new entries in the config section, for setting file paths for
- Root CA
- Client Certificate
- Client Private Key
(all set as expert parameters)
- logging cert filenames
added config entries for MQTT TLS
3 new entries in the config section, for setting file paths for
- Root CA
- Client Certificate
- Client Private Key
- logging cert filenames
MQTT-TLS: Updates for the PR comments
- config.ini now has default values closer to "real" life filenames
- MQTT cert entries are hidden as Expert parameters
- Fixed debug logging at MQTT interface for unhandled messages
* Migration to PlatformIO 6.1.0
* Disable RMTMEM usage as it is no longer allowed -> Smart LEDs not functional!
* moved miniz into subfolder of jomjol_fileserver_ota, else it does not build anymore.
* cleanup
* fix leading NaN (#2310)
* Migration to PlatformIO 6.1.0
* Disable RMTMEM usage as it is no longer allowed -> Smart LEDs not functional!
* moved miniz into subfolder of jomjol_fileserver_ota, else it does not build anymore.
* cleanup
* Task watchdog has new config name
* Fix return value check. It must be something else than ESP_FAIL, but it does not need to be ESP_OK!
* add missing strucures to work around new RMTMEM restriction (untested)
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Testcase for #2145 and debug-log (#2151)
* new models ana-cont-11.0.5, ana-class100-1.5.7, dig-class100-1.6.0
* Testcase for #2145
Added debug log, if allowNegativeRates is handeled
* Fix timezone config parser (#2169)
* make sure to parse the whole config line
* fix crash on empty timezone parameter
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Enhance ROI pages (#2161)
* Check if the ROIs are equidistant. Only if not, untick the checkbox
* renaming
* Check if the ROIs have same y, dy and dx. If so, tick the sync checkbox
* only allow editing space when box is checked
* fix sync check
* show inner frame on all ROIs
* cleanup
* Check if the ROIs have same dy and dx. If so, tick the sync checkbox
* checkbox position
* renaming
* renaming
* show inner frame and cross hairs on all ROIs
* update ROIs on ticking checkboxes
* show timezone hint
* fix deleting last ROI
* cleanup
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* restart timeout on progress, catch error (#2170)
* restart timeout on progress, catch error
* .
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* BugFix #2167
* Release 15.1 preparations (#2171)
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update changelog
* Fix links to PR
* Formating
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
* Update Changelog.md
---------
Co-authored-by: Slider0007 <jobbelle@gmx.net>
Co-authored-by: Slider0007 <115730895+Slider0007@users.noreply.github.com>
* fix typo
* Replace relative documentation links with absolute ones pointing to the external documentation (#2180)
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Sort model files in configuration combobox (#2189)
* new models ana-cont-11.0.5, ana-class100-1.5.7, dig-class100-1.6.0
* Testcase for #2145
Added debug log, if allowNegativeRates is handeled
* Sort model files in combobox
* reboot task - increase stack size (#2201)
Avoid stack overflow
* Update interface_influxdb.cpp
* Update Changelog.md
* Show PSRAM usage (#2206)
* centralize PSRAM usage (application code only)
* update logging
* update logging
* fix use after free
* initialize buffer
* free rgb_image before ussing it for new allocation
* use wrapper function
* switch log level to debug
* .
* undo adding free() calls
* .
* add names to all CImage instances
* .
* .
* .
* revert changes of stbi_image_free() with free_psram_heap() on the places where is is not in PSRAM
* .
* typos
* typo
* Added MQTT Outbox explanation/warning
* added CONFIG_SPIRAM_USE_MEMMAP explanation
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Disable custom MQTT Outbox. This also moves the MQTT Publishing memory usage back to the internal RAM!
* log MQTT connection refused reasons (#2216)
* Revert PSRAM usage as it lead to memory fragmentation. (#2224)
See https://github.com/jomjol/AI-on-the-edge-device/issues/2200 for details
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Fix missing value data in graph (#2230)
* fix missing value data
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Update Changelog.md (#2231)
---------
Co-authored-by: Frank Haverland <fspapaping@googlemail.com>
Co-authored-by: CaCO3 <caco@ruinelli.ch>
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com>
Co-authored-by: Slider0007 <jobbelle@gmx.net>
Co-authored-by: Slider0007 <115730895+Slider0007@users.noreply.github.com>
* centralize PSRAM usage (application code only)
* update logging
* update logging
* fix use after free
* initialize buffer
* free rgb_image before ussing it for new allocation
* use wrapper function
* switch log level to debug
* .
* undo adding free() calls
* .
* add names to all CImage instances
* .
* .
* .
* revert changes of stbi_image_free() with free_psram_heap() on the places where is is not in PSRAM
* .
* typos
* typo
* Added MQTT Outbox explanation/warning
* added CONFIG_SPIRAM_USE_MEMMAP explanation
---------
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* 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>
* fix special case where number is named "default" (keep all topics in top level instead of in a sub-group)
* re-implemented SNTP usage, added way to disable NTP client, added timezone table
* minor fixes
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
* modify mqtt init at startup + after disconnection
* mqtt_init only when not initialized
* Minor udapte
* Apply suggestions from code review
Co-authored-by: CaCO3 <caco3@ruinelli.ch>
* Correct typo
Co-authored-by: CaCO3 <caco3@ruinelli.ch>
* Update server_mqtt.cpp
* Update server_mqtt.cpp
* skipp all MQTT publishing until the next round if an error occures
* improve logging
* only use group for uid and topic if there is more than one number
* .
* .
* HTML: implement data viewer
* Correct CSV error
* Improve OTA
* Use consistent Log TAG syntax, name TAG variable the same in every file.
* .
* .
* .
* .
* .
* Update server_tflite.cpp
* Correct CSV error
* Improve OTA
* Use consistent Log TAG syntax, name TAG variable the same in every file.
* .
* .
* .
* .
* .
* Update server_tflite.cpp
* .
* .
* .
* .
* .
* .
* .
* .
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com>
* 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