Workflow suggestions for clearing bonded devices and advertising
Posted: Mon Oct 16, 2023 9:43 pm
Hi, I'm using esp-idf and bluedroid.
I would like to implement a feature that allows the user to press and hold a button, which triggers the following sequence
- Disconnect device from host
- Clear all bonding information
- Start advertising
The purpose of this is ease of portability between host machines, as it will be used on multiple devices frequently, rather than tracking credentials, a clean slate would be better.
The issue I'm having is that
- the host (macbook in this case) tries to reconnect automatically
- then the device is missing the key
- the connection attempt fails
- the device stops advertising until I manually start via button press.
When I increased the advertisement interval, the host connection attempt times out, and I see the advertisement, but then the problem becomes latency.
Is there a better workflow to accomplish this?
do I need to add another SW timer to kick off the start of advertising?
Any advice is welcome, thank you.
I would like to implement a feature that allows the user to press and hold a button, which triggers the following sequence
- Disconnect device from host
- Clear all bonding information
- Start advertising
The purpose of this is ease of portability between host machines, as it will be used on multiple devices frequently, rather than tracking credentials, a clean slate would be better.
The issue I'm having is that
- the host (macbook in this case) tries to reconnect automatically
- then the device is missing the key
- the connection attempt fails
- the device stops advertising until I manually start via button press.
When I increased the advertisement interval, the host connection attempt times out, and I see the advertisement, but then the problem becomes latency.
Is there a better workflow to accomplish this?
do I need to add another SW timer to kick off the start of advertising?
Any advice is welcome, thank you.