-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
OPTA / Mbed crash on wifi.begin() #1011
Comments
Hi Kevin
Thanks for your suggestion.
It effectively works, also on mine, apparently thanks to the "int status =
WiFi.status();" line.
If I insert a delay(1000); between that line and wifi.begin, crash again.
In my use case there was something else before wifi.begin, like writing on
digital output.
it seems that there is an incompatibility between some function calls and
wifi.begin, if they are called just before.
I can live with, but I think that there is a bug somewhere.
Le sam. 4 janv. 2025 à 22:36, Kevin ***@***.***> a écrit :
… How about trying this:
int status = WiFi.status();
WiFi.begin(ssid, pass);
while (status != WL_CONNECTED)
{
// your serial print out
delay(1000);
}
This works great on my OptaWifi.
—
Reply to this email directly, view it on GitHub
<#1011 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANAPYAEYEQIYTMQLLJZA2YD2JBH6FAVCNFSM6AAAAABUTEQ2E2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZRGQYTOOJUGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Try this instead inside your While statement: while (status != WL_CONNECTED) { this part in setup should work for you as well. It works here on mine. This is from the examples for Opta, Under the wifi tag in the ide from the Wifi SSL Client example. I hope this helps you. |
Thanks @Johnson48858 this is working as a workaround. My intention is to help improving the opta product and libraries, so I think It is worth a debug session from the library maintainers (maybe I can help for that). I have opened a service request to Arduino support, maybe they are able to relay that. Regards |
Hi,
I have an issue with my OPTA Wifi board, described here :
When i call
wifi.begin()
, the mbed OS crashes (red led blinking 4 times slowly and then fastly).Strangely, I have found that writing to the serial port just before invoking
wifi.begin()
seems to avoid the issue, and so this is making the opta examples with WiFi working.For example, the stock Arduino IDE "Wifi/WiFiSSLClient" example from the IDE is working correctly, but if I add a :
delay (1000);
just before
wifi.begin()
, mbed OS is crashing.I though that there was a powering issue, but the same is occuring when I plug the OPTA in a strong USB power supply or 24V industrial supply.
This basic code is crashing the OPTA if place on the setup function, unless I remove the
delay (1000);
line :Test conditions :
Thanks for reading :-)
The text was updated successfully, but these errors were encountered: