ESP-01 Hard Shield. Sliders causing occasional disconnects on local server

I’m running an Esp-01 as a wifi shield for a Mega on local server. I first want to say that it’s AWESOME that this is possible…

My issue is that I’m getting an occasional disconnect when I’m using the slider widget. It’s super occasional- I can sometimes take 2 sliders and just move them back and forth constantly and have zero problems, but sometimes I’m getting a “your mega has disconnected” warning in my android app when I do a simple widget sliding maneuver.

Is there a way I can add a little bit of delay to the slider?

Something like…

int co2Slider;  // my global stored slider value

long interval = 1000;
long previousMillis = 0;

//Slider CO2

  unsigned long currentMillis = millis();
  int co2Setting = param.asInt();

  if (co2Setting != co2Slider) { 

    if ((currentMillis - previousMillis) > interval) {
      co2Slider = co2Setting;
      previousMillis = currentMillis;



Yes, currently ESP8266 as a shield is rather unstable :frowning:
I don’t think it can be fixed easily, but we’re still thinking about it!

I don’t thing delaying something on the hardware side can help, unfortunately the bottleneck is on the ESP8266 protocol.