Code: Select all
_IRQ_GATTS_READ_REQUEST
My use case is that I want to receive the values for some characteristics after the central has connected, regardless whether they have changed on the peripheral. The data is too large to fit in a scan request packet, and it doesn't seem like the right place to put it anyway.
I have tried issuing an indication in the connection event handler, but that doesn't seem to be picked up by my client because (I think) the indication handler is set after connection has been established, so it's being eaten before I can get it.
My next thought is to add a command characteristic that when written to tells the server to issue notifications/indications for each characteristic.
As I am new to BLE, what's the preferred strategy for a central to read data from the peripheral on demand on an ESP32?