-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ESP8266: treats Wi-Fi scan results as out-of-band data; new API to adjusting Wi-Fi scan settings #9955
Conversation
@VeijoPesonen, thank you for your changes. |
cnt++; | ||
if (limit != 0 && cnt >= limit) { | ||
break; | ||
if (_parser.send("AT+CWLAP") && _parser.recv("OK\n")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. Should be
if (!_parser.send("AT+CWLAP") || !_parser.recv("OK\n")) {
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://en.wikipedia.org/wiki/De_Morgan%27s_laws
!(A && B) == !A || !B
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
As this PR didn't get fully checked yet I decided to add more content. @michalpasztamobica, @SeppoTakalo please review the new changes. |
@cmonr the release label should probably be 5.13.0-rc1 . The original fix wasn't so urgent that it must get to 5.12.1. |
Makes possible to decide between active and passive mode. Makes possible to adjust for how long a single channel is scanned.
@SeppoTakalo , @michalpasztamobica , @cmonr rebased. |
This should be rather functionality change ? I was checking why 5.13 labeled. |
@0xc0170 thanks for pointing that out, switched to Functionality change. |
starting CI |
Test run: FAILEDSummary: 1 of 13 test jobs failed Failed test jobs:
|
timeout failures on the mbed-os-ci_cloud-client-test . re-running to verify it is not sporadic |
I would hold this until 5.12 completes to minimize the functional changes at this release stage. |
…imeout ESP8266: treats Wi-Fi scan results as out-of-band data; new API to adjusting Wi-Fi scan settings
Description
No reason to wait for 15 seconds for the results if those happen to arrive earlier.
Makes possible to decide between Wi-Fi scan active and passive mode.
Makes possible to adjust for how long a single channel is scanned.
Should address the issue #8609
Pull request type
Reviewers
@michalpasztamobica
@SeppoTakalo
Release Notes
ESP8266: new Wi-Fi scan API for active and passive mode. Making channel scan time configurable