Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f4c50f1c
Commit
f4c50f1c
authored
Oct 19, 2015
by
danicampora
Browse files
tests/wipy: Make WLAN test more stable.
parent
ae70e98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/wipy/wlan/wlan.py
View file @
f4c50f1c
...
...
@@ -40,6 +40,7 @@ print(wifi.antenna() == WLAN.INT_ANT)
wifi
=
WLAN
(
mode
=
WLAN
.
STA
)
print
(
wifi
.
mode
()
==
WLAN
.
STA
)
time
.
sleep
(
5
)
# this ensures a full network scan
scan_r
=
wifi
.
scan
()
print
(
len
(
scan_r
)
>
3
)
for
net
in
scan_r
:
...
...
@@ -67,6 +68,7 @@ print(wifi.antenna() == WLAN.INT_ANT)
wifi
.
antenna
(
WLAN
.
EXT_ANT
)
print
(
wifi
.
antenna
()
==
WLAN
.
EXT_ANT
)
time
.
sleep
(
2
)
# this ensures a full network scan
scan_r
=
wifi
.
scan
()
print
(
len
(
scan_r
)
>
3
)
for
net
in
scan_r
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment