mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-20 09:16:30 +00:00
MI32: fix server notifications/indications (#23686)
This commit is contained in:
parent
a38146cc95
commit
08f2826e97
@ -1669,7 +1669,7 @@ void MI32ServerSetCharacteristic(NimBLEServer *pServer, std::vector<NimBLEServic
|
|||||||
MI32.infoMsg = MI32_SERV_CHARACTERISTIC_ADDED;
|
MI32.infoMsg = MI32_SERV_CHARACTERISTIC_ADDED;
|
||||||
}
|
}
|
||||||
pCharacteristic->setValue(MI32.conCtx->buffer + 1, MI32.conCtx->buffer[0]); // set value
|
pCharacteristic->setValue(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{
|
struct{
|
||||||
BLERingBufferItem_t header;
|
BLERingBufferItem_t header;
|
||||||
} item;
|
} item;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user