-
-
Notifications
You must be signed in to change notification settings - Fork 214
WiFi IP config issues, need WiFi::reset() #1045
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
Comments
So far, I have found that I need to call In my code, I have also substituted the command
with the following
These modifications seem to improve my program, yet the Meanwhile, I report that in |
On the side, I am wondering if in file ArduinoCore-mbed/libraries/WiFi/src/WiFi.cpp in function Moreover, on line 136, the condition |
Uh oh!
There was an error while loading. Please reload this page.
Dear developers,
I am having troubles in switching between WiFi's STA and AP mode on my Arduino GIGA R1 board.
In my scenario, I do the following:
So far I found that:
WiFiUDP::endPacket()
often fails with error -3003 (NSAPI_ERROR_PARAMETER
).IPAddress nullip = IPAddress(); WiFi.config(nullip, nullip, nullip, nullip);
beforeWiFi.end()
before STA connection, the latter is incredibly more likely to succeed.WiFiUDP:endPacket()
always fails as above.WiFi = WiFiClass(WiFiInterface::get_default_instance())
afterWiFi.end()
every time I switch between STA and AP, I have less troubles.Before AP creation, a random IP address is set as follows:
I used to test my code on a protected network and I experienced fewer problems. Then I had to switch to an open network and a mess arose.
I guess a function like a total reset of the WiFi interface with sockets and everything, so to come back to a status as if the Arduino board was just switched on and no connection was attempted, would be advantageous in switching between STA and AP mode.
Thank you
The text was updated successfully, but these errors were encountered: