mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Fix GPIOViewer on ESP32 (needs upcoming core change)
This commit is contained in:
parent
f0c12b6e9c
commit
969611835c
@ -452,7 +452,9 @@ void GVHandleEvents(void) {
|
|||||||
|
|
||||||
GV->WebServer->setContentLength(CONTENT_LENGTH_UNKNOWN); // The payload can go on forever
|
GV->WebServer->setContentLength(CONTENT_LENGTH_UNKNOWN); // The payload can go on forever
|
||||||
GV->WebServer->sendContent_P(HTTP_GV_EVENT);
|
GV->WebServer->sendContent_P(HTTP_GV_EVENT);
|
||||||
|
#ifdef ESP32
|
||||||
|
GVWebClient.setSSE(true);
|
||||||
|
#endif
|
||||||
GV->sse_ready = true; // Ready for async updates
|
GV->sse_ready = true; // Ready for async updates
|
||||||
if (GV->sampling != 100) {
|
if (GV->sampling != 100) {
|
||||||
GV->ticker.attach_ms(GV->sampling, GVMonitorTask); // Use Tasmota Scheduler (100) or Ticker (20..99,101..1000)
|
GV->ticker.attach_ms(GV->sampling, GVMonitorTask); // Use Tasmota Scheduler (100) or Ticker (20..99,101..1000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user