esphome_elektromer_han/components
Tomer27cz a9e13b6e8c Optimize DlmsParser allocations and types
Use stack buffers and C-strings to avoid heap allocations, and modernize token handling and ownership.

- Replace heap-allocated std::string temporaries in dlms_parser.cpp with stack buffers and pass const char* to callbacks/logs to reduce allocations and copying.
- Change DlmsDataCallback signature to accept const char* for obis and string values; update DlmsPushComponent to match.
- Switch DlmsParser ownership to std::unique_ptr in DlmsPushComponent and add <memory> include.
- Replace std::list with std::vector for DSL token parsing, update iteration/insertion logic accordingly.
- Remove unused <list> include and adjust related function signatures/whitespace.

These changes improve performance and memory usage; note the callback/API signature change may require updating any external callers.
2026-03-07 20:58:19 +01:00
..
dlms_push Optimize DlmsParser allocations and types 2026-03-07 20:58:19 +01:00
xt211 Update xt211_uart.h 2026-02-28 22:36:15 +01:00