public interface WiFiConnectCallback

Callback for WiFi.connect(...). Invoked once on the EDT.

Methods

public abstract void onConnectResult(boolean connected, Throwable error)connected is true if the association succeeded.

Method details

onConnectResult

public abstract void onConnectResult(boolean connected, Throwable error)
connected is true if the association succeeded. error is null on success and holds the rejection cause otherwise (cancelled by user, wrong password, unreachable AP, …).