esp32-snippets icon indicating copy to clipboard operation
esp32-snippets copied to clipboard

How to change characteristic properties at run-time.

Open DvDriel opened this issue 3 years ago • 0 comments

Dear All,

This library is awesome and I want to first of all thank all the people that contributed to it. For my project, I'm trying to disable/enable the write property of some characteristics. I wondered if anybody knows the proper way of doing this at run-time?

The BLECharacteristic class has methods to set these properties, but calling them seems to have no effect after BLEService::start() has already been called. I tried calling stop() and start() on the relevant services, but I get the message: "Characteristic already has a handle.". I hoped that calling stop() would deregister the characteristics, but it doesn't.

Any help would be greatly appreciated.

DvDriel avatar Jan 31 '22 12:01 DvDriel