- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a problem where my connection gets hung in a strange way (see forum post Connection drops after a while -- trying to figure out how to debug ).
As part of a possible work-around I implemented a callback to trigger on the idle connection timer. This callback fires when the connection gets stuck - but I can't figure out how to do anything at that point to recover. Is there any way to quit the current connection and return to advertising? I tried turning advertisements back on, but until the connection drops it won't send them. Is there any way to reset the stack somehow to cause it to recover from the broken connection state?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello idgirod,
This solution will work for both Central Mode and Peripheral Mode.
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried something like:
#include "blecm.h"
#include "error.h"
blecm_disconnect( BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This doesn’t seem to work — maybe this is only for use in central mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello idgirod,
This solution will work for both Central Mode and Peripheral Mode.
Thanks
JT