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);
}
}