Implement memory monitoring and queue size reporting in MQTTBridge and CommonCLI

- Added `getQueueSize` method to `MyMesh` and `CommonCLI` for better queue management.
- Introduced memory logging functionality in `MQTTBridge` to monitor heap usage and detect potential memory leaks.
- Adjusted maximum queue size in `MQTTBridge` from 50 to 10 for improved resource management.
- Enhanced command handling in `CommonCLI` to report memory status upon request.
This commit is contained in:
agessaman
2026-01-02 13:36:41 -08:00
parent eee02025b8
commit e77beff04b
+1
View File
@@ -595,6 +595,7 @@ void MQTTBridge::publishPacket(mesh::Packet* packet, bool is_tx,
float snr, float rssi) {
if (!packet) return;
<<<<<<< HEAD
// Size-adaptive buffer: estimate needed size based on packet size
// Most packets are <100 bytes (need ~400 byte JSON), large packets need ~1500 bytes
int packet_size = packet->getRawLength();