tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.57k stars 1.97k forks source link

3 second delay in Webside communication #1117

Open Devilscave opened 4 years ago

Devilscave commented 4 years ago

Hardware

WiFimanager Branch/Release:

Esp8266/Esp32:

Hardware: ESP-12e, esp01, esp25

ESP Core Version: 2.4.0, staging

Description

I have the problem when I send actions from my website back to the ESP. This is very annoying if you use it to regulate a value, but this only arrives at the ESP every 3 seconds. It is an LED control. This "* WM: [3] unloading" is returned by the WifiManager, but always with a 3 second delay. I press the button on the website 20 times and then gradually the changed values come. Can this be accelerated or turned off?

Module: NodeMcu, Wemos D1

Serial Monitor output

speed is 12000 WM: [3] unloading speed is 9600 WM: [3] unloading
speed is 7680 WM: [3] unloading
speed is 6144
WM: [3] unloading speed is 4915 WM: [3] unloading speed is 3932 WM: [3] unloading
speed is 3145 WM: [3] unloading speed is 2516 WM: [3] unloading
speed is 2012 WM: [3] unloading speed is 1609 WM: [3] unloading
speed is 1287 WM: [3] unloading
speed is 1029
WM: [3] unloading speed is 823 WM: [3] unloading speed is 658 WM: [3] unloading speed is 526 *WM: [3] unloading speed is 420

tablatronix commented 4 years ago

This would indicate that you are instantiating wm every single time... So your scope is wrong