Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
dbab62c2
Unverified
Commit
dbab62c2
authored
Nov 27, 2023
by
Richard Teel
Committed by
GitHub
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added clearAPList method to WiFiMulti (#1848)
Fixes #1846
parent
6a878cde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
libraries/WiFi/src/WiFiMulti.cpp
libraries/WiFi/src/WiFiMulti.cpp
+9
-0
libraries/WiFi/src/WiFiMulti.h
libraries/WiFi/src/WiFiMulti.h
+2
-0
No files found.
libraries/WiFi/src/WiFiMulti.cpp
View file @
dbab62c2
...
...
@@ -58,6 +58,15 @@ bool WiFiMulti::addAP(const char *ssid, const char *pass) {
return
true
;
}
void
WiFiMulti
::
clearAPList
()
{
while
(
!
_list
.
empty
())
{
struct
_AP
ap
=
_list
.
front
();
_list
.
pop_front
();
free
(
ap
.
ssid
);
free
(
ap
.
pass
);
}
}
uint8_t
WiFiMulti
::
run
(
uint32_t
to
)
{
struct
_scanAP
{
char
*
ssid
;
...
...
libraries/WiFi/src/WiFiMulti.h
View file @
dbab62c2
...
...
@@ -32,6 +32,8 @@ public:
bool
addAP
(
const
char
*
ssid
,
const
char
*
pass
=
nullptr
);
void
clearAPList
();
uint8_t
run
(
uint32_t
to
=
10000
);
private:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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