mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix stack overflow in lwip task
This commit is contained in:
@@ -529,7 +529,8 @@ void System::loop() {
|
|||||||
|
|
||||||
// send MQTT info topic appended with the version information as JSON, as a retained flag
|
// send MQTT info topic appended with the version information as JSON, as a retained flag
|
||||||
void System::send_info_mqtt(const char * event_str, bool send_ntp) {
|
void System::send_info_mqtt(const char * event_str, bool send_ntp) {
|
||||||
StaticJsonDocument<EMSESP_JSON_SIZE_MEDIUM> doc;
|
// use dynamic json becaues it is called from NTP-callback from lwip task with small stack
|
||||||
|
DynamicJsonDocument doc = DynamicJsonDocument(EMSESP_JSON_SIZE_MEDIUM);
|
||||||
doc["event"] = event_str;
|
doc["event"] = event_str;
|
||||||
doc["version"] = EMSESP_APP_VERSION;
|
doc["version"] = EMSESP_APP_VERSION;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user