From b3b9eb75bb2d8801e27d28e3b121f9b86788cc1f Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Wed, 10 Apr 2019 11:33:42 -0400 Subject: [PATCH] Characteristic value lengths can be up to 512 bytes, uint8_t should not be used to store the length --- src/local/BLELocalCharacteristic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/local/BLELocalCharacteristic.h b/src/local/BLELocalCharacteristic.h index 418081e5..7d9cb0a6 100644 --- a/src/local/BLELocalCharacteristic.h +++ b/src/local/BLELocalCharacteristic.h @@ -76,7 +76,7 @@ class BLELocalCharacteristic : public BLEAttribute { uint8_t _properties; int _valueSize; uint8_t* _value; - uint8_t _valueLength; + uint16_t _valueLength; bool _fixedLength; uint16_t _handle;