EMS-ESP32 icon indicating copy to clipboard operation
EMS-ESP32 copied to clipboard

Fix missing log entries in web

Open proddy opened this issue 1 year ago • 0 comments

There is a chance of log messages being skipped when displayed on the Web specially on slow networks.

MichaelDvP suggested the following:

"Maybe set a longer timeout (300-500ms) in EMS-ESP and post back the message-id on an event received. If the post is received in EMS-ESP, the next message-event can be sent immediately; otherwise, you can just repeat the message after a timeout. It could also help to pack all queued messages into one event as json-array, which reduces the number of events."

which is a perfect solution.

Originally posted by @MichaelDvP in https://github.com/emsesp/EMS-ESP32/issues/1611#issuecomment-1986835773

proddy avatar Mar 09 '24 14:03 proddy