HM10 "Packet Too Big"/Disconnecting

Hi there,

I’m currently trying to use Blynk to control some WS2811 lights I have up in my room, but I keep getting “packet too big” errors. I’m using a HM10 BLE module, arduino uno, and an iphone. Just to get it working, I’ve reduced the whole project to one on/off button. Here’s the sketch I’m using:


#define BLYNK_PRINT Serial

#include <SoftwareSerial.h>
SoftwareSerial SerialBLE(10, 11); // RX, TX
#include <BlynkSimpleSerialBLE.h>
char auth[] = "...";

#include <FastLED.h>
#define DATA_PIN 5
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define NUM_LEDS 200
CRGB leds[NUM_LEDS];
int BRIGHTNESS = 96;
int powerStatus = 0;

BLYNK_WRITE(V0){
  powerStatus = param.asInt();
  if (powerStatus == 1){
    Serial.print("On ");
  }
  else if (powerStatus == 0){
    Serial.print("Off ");
  }
}

void setup()
{
  delay(3000); 
  
  SerialBLE.begin(9600);
  Blynk.begin(SerialBLE, auth);
  Serial.println("Waiting for connections...");

  FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
  FastLED.setBrightness(BRIGHTNESS);  
}
  
void loop()
{
  Blynk.run();
  
  if (powerStatus == 1) {
    for (int i = 0; i<NUM_LEDS; i++){
      leds[i] = CRGB::White;
    }
    FastLED.show();  
  }
  
  else if (powerStatus == 0){
    for (int j = 0; j<NUM_LEDS; j++){
      leds[j] = CRGB::Black;
    }  
    FastLED.show();
  }
  
}

And here’s the serial monitor:

As you can see, it connects just fine, but as soon as I start the project in the app and press the button on pin V0, I get “packet too big” and disconnect. It then will refuse to reconnect until I reupload the sketch. If anyone sees any glaring issues here I’m missing, please let me know. Thanks!