Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
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
micropython
Commits
0f25e038
Commit
0f25e038
authored
Jan 04, 2022
by
iabdalkader
Committed by
Damien George
Jan 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extmod/network_ninaw10: Disable active connections before connecting.
parent
c6d26bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
extmod/network_ninaw10.c
extmod/network_ninaw10.c
+5
-0
No files found.
extmod/network_ninaw10.c
View file @
0f25e038
...
...
@@ -173,6 +173,11 @@ STATIC mp_obj_t network_ninaw10_connect(mp_uint_t n_args, const mp_obj_t *pos_ar
mp_raise_msg
(
&
mp_type_OSError
,
MP_ERROR_TEXT
(
"Key can't be empty!"
));
}
// Disconnect active connections first.
if
(
nina_isconnected
())
{
nina_disconnect
();
}
if
(
self
->
itf
==
MOD_NETWORK_STA_IF
)
{
// Initialize WiFi in Station mode.
if
(
nina_connect
(
ssid
,
security
,
key
,
0
)
!=
0
)
{
...
...
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