Use write with response when writing 0x2902 descriptors.

As per Bluetooth core specification we must write to 0x2902 descriptors with response request.
This change ensures the correct procedure is used.

Todo: Remove the "response" parameter from related functions.
This commit is contained in:
h2zero
2022-04-16 12:47:23 -06:00
parent 9e5db157f8
commit c285052f6d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -616,6 +616,7 @@ bool NimBLERemoteCharacteristic::setNotify(uint16_t val, notify_callback notifyC
NIMBLE_LOGD(LOG_TAG, "<< setNotify()");
response = true; // Always write with response as per Bluetooth core specification.
return desc->writeValue((uint8_t *)&val, 2, response);
} // setNotify