Skip to content

Conversation

@AfromD
Copy link

@AfromD AfromD commented Jun 12, 2025

This commit ensures that calls to BLESS functions have a minimal delay between them. It is a workaround to avoid BLE becoming unresponsive after a duration of time. It is suspected that calling BLESS too quickly causes it to become unrespoinsive. This code fixes this by ensuring a delay has expired before the next call.

This commit has been tested by me for multiple hours of actual cycling and seems to have cured the BLE losses.

@WouterJD
Copy link
Owner

WouterJD commented Sep 4, 2025

hi @AfromD; sorry for the long delay. But there were other prio's to be done at home :-)

Thanks for the code-delay suggestions and I have implemented it in the code.
I have chosen for a different approach, as you can see in the now published bleBless and bleBlessClass code; I hope you can agree with that.

The essential is that the delay is implemented in the main BLEserver class and that the bleBless uses it, to keep the delay code away from the funtional code.

Curious to hear from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants