hello
i noticed clearing wifi credentials does not work on our p2 based board?
if(!WiFi.clearCredentials()) {
Log.warn("clear credentials failed!");
}
what could be a reason for failing?
thanks
frank
hello
i noticed clearing wifi credentials does not work on our p2 based board?
if(!WiFi.clearCredentials()) {
Log.warn("clear credentials failed!");
}
what could be a reason for failing?
thanks
frank
I believe it's a bug. The WiFi.clearCredentials()
function is documented as returning a bool
but the lower layer is returning a system error code, so 0 = success and non-zero is failure, opposite of a bool.
In other words, it probably succeeded even though your log message was logged.
okay, clear, thanks, frank
It may be a bug. We'll take a look at the return values.