blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

"Packet too big" during BLE connection request on BBC Microbit, RFDui… #463

Closed FedericoBusero closed 4 years ago

FedericoBusero commented 5 years ago

…no, nRF51822, ...

Problem: When using BLE on boards using the library arduino-BLEPeripheral, the Blynk connection request nearly always fails with the message "Packet too big".

Following boards are using the library arduino-BLEPeripheral:

Cause The main cause of this problem is the size of the receiving buffer, which was only 20 bytes. Other Blynk implementations of BLE boards however have a receiving buffer size of 512 bytes.

Changes: fix buffer size bug & make the code more in line with other Blynk BLE implementations:

Description

[Describe what this change achieves]

Issues Resolved

[List any existing issues this PR resolves; include Fixes #xxx or Closes #xxx (where xxx is issue number)]

FedericoBusero commented 5 years ago

See issue https://github.com/blynkkk/blynk-library/issues/459

vshymanskyy commented 5 years ago

Thanks for a valuable contribution. I will review and test it soon!