Hi,
I’m having problems with my code and it keeps spamming “Packet too big: xxxxx”.
I am using a nano with a HC-06 module through the blynk app.
#define BLYNK_PRINT Serial
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(1, 0);
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>
char auth[] = "2b1d159cfc6444b6ac7f00cb1dcb09ee";
SoftwareSerial SerialBLE(1, 0);
BlynkTimer timer;
int r = 0;
int g = 0;
int b = 0;
void myTimerEvent()
{
Blynk.virtualWrite(V1, millis() / 1000);
}
BLYNK_WRITE(V1)
{
r = param[0].asInt();
g = param[1].asInt();
b = param[2].asInt();
Serial.print("V1 Slider value is: ");
Serial.println(r);
}
void setup()
{
// Debug console
Serial.begin(9600);
SerialBLE.begin(9600);
Blynk.begin(SerialBLE, auth);
Serial.println("Waiting for connections...");
// Setup a function to be called every second
timer.setInterval(1000L, myTimerEvent);
}
void loop()
{
Blynk.run();
timer.run();
}