Buttons stops working over time

So I’m having problem with everything using BLYNK_WRITE. Widgets usually works ~30 seconds after powering up the mcu and then it stops reacting. Sometimes blynk prints “packet too big” and reconnects. The weirdest part is that virtualWrite and leds are working fine. Some help please?
• ESP32 - WiFi communication
• Android, 4.4.2, but it happens on every phone i tried
• Blynk server
• Blynk Library version 0.5.2


#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <Ticker.h>
char auth[] = "-";
char ssid[] = "-";
char pass[] = "-";
int var;
Ticker update_display;
void send() {
	Blynk.virtualWrite(V7, var);
}
void setup() {
	Serial.begin(9600);
	Blynk.begin(auth, ssid, pass);
	update_display.attach(1, send);
}

void loop() {
	Blynk.run();
	Blynk.virtualWrite(V7, var);

}
BLYNK_WRITE(V15) {
	if (param.asInt() == 1) {
		var++;
		Serial.println(var);

	}
}
BLYNK_WRITE(V14) {
	if (param.asInt() == 1) {
		var--;
		Serial.println(var);

	}
}

use timer instead loop !
:wink:

I noticed that 5 minutes after posting but it isn’t making any difference :frowning:

try to use timer.setInterval instead of ticker

Now it says packet too big all the time i click, even when i tap it very slowly.

aaaaaaaaaand while i added ds18b20 reading(working async in timer) problems with stopping buttons came back.