Update xdrv_79_esp32_ble.ino

Write without response
This commit is contained in:
Sthope 2021-04-15 09:20:46 +02:00 committed by GitHub
parent e61084d3a3
commit dee8013432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2004,7 +2004,7 @@ static void BLETaskRunCurrentOperation(BLE_ESP32::generic_sensor_t** pCurrentOpe
}
}
if (op->writelen){
if(pCharacteristic->canWrite()) {
if(pCharacteristic->canWrite() || pCharacteristic->canWriteNoResponse() ) {
if (!pCharacteristic->writeValue(op->dataToWrite, op->writelen, true)){
newstate = GEN_STATE_FAILED_WRITE;
#ifdef BLE_ESP32_DEBUG