8000 Handle `response` argument for BLERemoteDescriptor#writeValue() · Netoperz/esp32-snippets@74b056f · GitHub
[go: up one dir, main page]

Skip to content

Commit 74b056f

Browse files
committed
Handle response argument for BLERemoteDescriptor#writeValue()
1 parent faf2839 commit 74b056f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_utils/BLERemoteDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void BLERemoteDescriptor::writeValue(
148148
getHandle(),
149149
length, // Data length
150150
data, // Data
151-
ESP_GATT_WRITE_TYPE_NO_RSP,
151+
response ? ESP_GATT_WRITE_TYPE_RSP : ESP_GATT_WRITE_TYPE_NO_RSP,
152152
ESP_GATT_AUTH_REQ_NONE
153153
);
154154
if (errRc != ESP_OK) {

0 commit comments

Comments
 (0)
0