mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 18:46:02 +00:00
664baac09e97a9600554c0508eae020742f308d0
The on_log callback was constructing a temporary MQTTMessage struct which copied the log_message_ topic string and created a new std::string from the message buffer on every log line. This is called frequently at runtime and contributes to heap fragmentation. Use the const char* publish overload directly to avoid both allocations.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
585 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
