-
There are indeed some issues with ESP32, sad
Yes, not a long time ago only advertising worked well on ESP32 so even this state is much better. If setting up service with characteristics did not work (at all I guess?) and is fixed only now it means nobody used it before. Does at least reading and writing values of characteristics work? As a workaround for now it may be good enough to read characteristics periodically instead of using notifications.
Oh but you said writing does not work because the callback is not called so you don't get the new value. Oh, well.
I don't know what project are you working on but if you just need some bidirectional communication you may use the interpreter console itself over BLE to pass the data. Sorry I don't use ESP32 with Espruino for BLE so I am not sure what already works, @MaBe does at least the Nordic UART console work over BLE on ESP32?
Or maybe @Gordon knows what is BLE state for ESP32 and what is still missing? I've seen some significant BLE related work done for ESP32 port in recent year.
-
no no no no no... writing does work!
just the callback functiononWrite()
is not implemented
I can both read and write / edit the value of certain characteristic, but could not call theonWrite()
callback function
In my conception, I should write / edit the value of characteristic A, and then my ESP32 call theonWrite()
callback function to verify this value. If the value is valid, ESP32 will change characteristic B to readable mode.
Just like some kind of encryption verification.
There are indeed some issues with ESP32, sad...