Open thomasvdwege opened 6 years ago
It may be issue with your client app. If you have 2 characteristics with the same UUID it requires to access characteristics with handle, but your client app can access it with UUID and sends value randomly.
For now I'll stick to 2 different UUID's, when I've written my own client I'll report back. My client being buggy could definitely be the case.
It may be issue with your client app. If you have 2 characteristics with the same UUID it requires to access characteristics with handle, but your client app can access it with UUID and sends value randomly.
How to write data to characteristics with handle?
When I create two different characteristics with the same 'identifier'
BLEUUID((uint16_t)0x2A3D
it looks like the onWrite handlers are not assigned correctly. Both values report"SSID: BLE received on ESP32/write : %s"
, but the passwordhandler should respond with"Password: BLE received on ESP32/write: %s"
. It worked one time, but I didn't even change anything, I just rebooted the ESP32.Using two different characteristics fixes this, but is there any way I can use two (or more) of the same characteristic?