How do I obtain the mac address to the WiFi radio?
I know there is a library ABWifi, but according to the author, just about all functions were dropped in 2.0 and he claims there are "better" libraries out there.
How do I obtain the mac address to the WiFi radio?
I know there is a library ABWifi, but according to the author, just about all functions were dropped in 2.0 and he claims there are "better" libraries out there.
Log("Mac Address: " & Get_Mac)
Sub Get_Mac As String
Dim R As Reflector
R.Target = R.GetContext
R.Target = R.RunMethod2("getSystemService", "wifi", "java.lang.String")
R.Target = R.RunMethod("getConnectionInfo")
Log(R.RunMethod("getMacAddress"))
Return R.RunMethod("getMacAddress")
End Sub
Actually I am using ABWifi to perform scans periodically (every 10 minutes) but seems it is draining too much battery.
So i want to try different approaches: How to obtain the list of MAC/BSSID of the accespoints nearby with getScanResults () ?