Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gap state is not updated when the advertising stop after the timeout #80

Closed
pan- opened this issue Oct 21, 2015 · 3 comments
Closed

Gap state is not updated when the advertising stop after the timeout #80

pan- opened this issue Oct 21, 2015 · 3 comments

Comments

@pan-
Copy link
Member

pan- commented Oct 21, 2015

The state of the Gap is not properly updated when the advertising stop after a timeout.

Gap& gap = BLE::Instance().gap();

// advertising will last for 10 seconds
gap.setAdvertisingTimeout(10);
gap.startAdvertising();

Gap::GapState_t state = gap().getState(); // at this stage state.advertising is equal to true

// 11 seconds later advertising has stopped
Gap::GapState_t state = gap().getState(); // state.advertising is still equal to true
@simonqhughes
Copy link

ARM Internal Ref: IOTSFW-1066

@andresag01
Copy link

Submitted a PR for this issue #168

@andresag01
Copy link

Changes merged to develop to fix this issue.

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

No branches or pull requests

4 participants