Closed Sladerix closed 1 year ago
Did you try to start this service not from BLE event or callback, just from loop()
or other task?
Did you try to start this service not from BLE event or callback, just from
loop()
or other task?
I actually found a workaround, it seems to work outside the ble-related events. I just put a boolean variable in the BLE Callback, and a check function in the loop, I start the pServiceB in the loop now instead.
This is what i am suggesting.
This is what i am suggesting.
where can I find documentation about what i can and cannot do in those functions ?
I dont think espressif is providing such docs, you just have to figure it our.
Hi every one, I need to recreate this behavior:
The BLE Server have 2 services: ServiceA has 1 characteristic called CODE, ServiceB has n characteristics
ESP32 boots up and starts only ServiceA
Now, a client can write on the CODE characteristic, if the code is correct ServiceB should start and appear in the available services..
I want to make something like this to create mini-security system... I already tried to do that but it does not work... in the moment I call
pServiceB->start();
the client (in this case smartphone with nRF Connect App) start loading until disconnection, and ESP32 freezes.this is the code:
Can someone help me figure why it doesn't work, and/or how to get that behavior working correctly? thanks in advance