Created
January 28, 2014 03:26
-
-
Save marcoonroad/8661820 to your computer and use it in GitHub Desktop.
Tenha as informações do seu atual Acess Point de WiFi ao qual seu Android precisa estar conectado (Requer: SL4A + BeanShell interpreter).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source("/sdcard/com.googlecode.bshforandroid/extras/bsh/android.bsh"); | |
droid = Android(); | |
info = droid.call("wifiGetConnectionInfo").get("result"); | |
print ("MAC Addresses: " + info.get("mac_address")); | |
print ("BSSID: " + info.get("bssid")); | |
print ("Hidden SSID? " + info.get("hidden_ssid")); | |
print ("IP Address: " + info.get("ip_address")); | |
print ("Link Speed: " + info.get("link_speed")); | |
print ("Network ID: " + info.get("network_id")); | |
print ("Supplicant State: " + info.get("supplicant_state")); | |
print ("SSID: " + info.get("ssid")); | |
print ("RSSI: " + info.get("rssi")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Se o seu Android não estiver conectado a nenhum AP de WiFi gera um erro.