adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
623 stars 497 forks source link

Fix BLEDiscovery::discoverCharacteristic when the central device returns more than 4 Characteristics in a discovery request #535

Closed pyro9 closed 4 years ago

pyro9 commented 4 years ago

Recover gracefully when a BLE peripheral returns more than 4 characteristics in a reply to a discovery request by clamping the reply's characteristic count to match what's actually in the truncated reply.

Should fix issue #514.