From 08f2826e977469a4ce62bcc26e641bbeefb972b8 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Tue, 15 Jul 2025 20:25:41 +0200 Subject: [PATCH] MI32: fix server notifications/indications (#23686) --- tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino b/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino index a1dfe2082..b8a8d1f9d 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino @@ -1669,7 +1669,7 @@ void MI32ServerSetCharacteristic(NimBLEServer *pServer, std::vectorsetValue(MI32.conCtx->buffer + 1, MI32.conCtx->buffer[0]); // set value - pCharacteristic->notify(true); // TODO: fallback to indication + MI32.conCtx->response ? pCharacteristic->indicate() : pCharacteristic->notify(); // use response to select indicate vs notification struct{ BLERingBufferItem_t header; } item;