How do you read ssid and wifi network password?

The function was to be used to automatically configure the ESP32 module so that the module can use the same wifi network as the phone. After that, it would be useful to know in the application whether the wifi network is 2.4GHz or 5GHz.

2 Likes

Check out this extension from @Taifun:
Wifi extension

I've seen this expansion. Unfortunately, I don't see any password return method there. Unless the password will be saved with the SSID? Unless Taifun would like to add a method that I could sponsor.

see the answers here

why this would only be possible with rooted devices
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

I wish to make an app to do what iphone can do backup the wifi ssid and password aswell to be stored on local storage for them to backup as a text file for importing at a later time when changing phones etc, how can i do this please? can you provide an example of the code that already does this if exists? please help.

it does not look like you read my previous answer?

Taifun

Hi everyone
im working in an app i want this app to show all of the wifi networks aviable in a listview
after picking show the password to the user and connect user to that network is this possible? if yes how?

Read above

Use the wifi extension and its AvailableSSIDs method to receive the available ssids in event GotAvailableSSIDs

Taifun

Thanks but how can i find the password?

It seems to be difficult for you to read the previous answers in this thread

As already said earlier, see the answers here

why this would only be possible with rooted devices

EDIT: however I think, it notwadays might be possible to get the password for newer Android versions again, see also

I will investigate soon...

Taifun