Skip to content

Commit 5d22155

Browse files
committed
writeValue: return the number of bytes written/stored in buffer
1 parent 1619dd0 commit 5d22155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/local/BLELocalCharacteristic.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int BLELocalCharacteristic::writeValue(const uint8_t value[], int length)
132132
}
133133
}
134134

135-
return 1;
135+
return _valueLength;
136136
}
137137

138138
int BLELocalCharacteristic::writeValue(const char* value)

0 commit comments

Comments
 (0)