isuPatches / android-wisefy

Wrapper around WifiManager and ConnectivityManager for Android
Apache License 2.0
312 stars 38 forks source link

How can I capture the log message? #108

Closed dokiKit closed 6 years ago

dokiKit commented 6 years ago

In the async api of connecting wifi, it will return "wisefyReturnCode". But How can I switch on these code and show respective error message?

As I try to connect an ap with wrong password, the logcat will show WiseFy: Failed to add network. Is it a way to capture these message in the callbacks?

isuPatches commented 6 years ago

The log messages with logging(true) on the WiseFy instance should be filterable by WiseFy or by WifiMangager.

Unfortunately, the errors from WifiManager are generic and return -1 in most cases making it hard to provide more accurate feedback about the issue. Sorry about that!