Added MQTTBridge memory management and debugging capabilities
- Added memory debugging features to log heap usage and fragmentation recovery for MQTT clients. - Introduced `recreateMqttClientsForFragmentationRecovery()` to manage MQTT client lifecycles and reduce memory fragmentation. - Updated critical memory checks to log detailed heap statistics and active MQTT client counts. - Included new debug logging for memory status every 60 seconds when memory debugging is enabled. This update aims to improve stability and performance in memory-constrained environments.
This commit is contained in:
1 parent
498566e6c9
commit
ccaaa534ff
6 files changed
+7015
-81
No files matched your search
@@ -139,6 +139,7 @@ build_flags =
|
||||
-D MAX_MQTT_BROKERS=3
|
||||
-D MQTT_MAX_PACKET_SIZE=1024
|
||||
-D MQTT_DEBUG=1
|
||||
-D MQTT_MEMORY_DEBUG=1
|
||||
-D MESH_PACKET_LOGGING=1
|
||||
-D MESH_DEBUG=1
|
||||
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
|
||||
|
||||
Reference in new issue
Block a user