Skip to content

Commit d638210

Browse files
committed
Characteristic value lengths can be up to 512 bytes, uint8_t should not be used to store the length
1 parent 7d8b9ee commit d638210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/local/BLELocalCharacteristic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class BLELocalCharacteristic : public BLEAttribute {
7676
uint8_t _properties;
7777
int _valueSize;
7878
uint8_t* _value;
79-
uint8_t _valueLength;
79+
uint16_t _valueLength;
8080
bool _fixedLength;
8181

8282
uint16_t _handle;

0 commit comments

Comments
 (0)