BLE completely breaks after two cycles BLE.begin->BLE.end #254
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Hi guys,
I have already asked this question before but never really received any answer that could help me. I will ask again, is there anyone here that knows how to enable BLE begin -> BLE end cycles? I want to begin BLE when I have data to send, and once it is sent, disconnect the device and end BLE. With the current code, I am able to perform 2 cycles after which my code stops and breaks. Does anyone have the solution for this? I really need this feature as for my experiments the current consumption when BLE is constantly ON is quite high. Thanks in advance!
This is my code:
And after two successful cycles, it stops after the Arduino is again connected to my computer, calling the callback void blePeripheralConnectHandler. This is the output from my serial monitor:
The text was updated successfully, but these errors were encountered: