Reputation: 21
I am making an application in which I will create a wifi hotspot using my android device. A hardware will be connected to this hotspot. Now I want to know the RSSI value of this wifi connection on my android device as this value will be used for creating notifications in my android phone. Please note that I need to create a hotspot using my android phone.
Upvotes: 2
Views: 4659
Reputation: 3151
You get the SSID you are connected to and its RSSI like this:
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo info = wifiManager.getConnectionInfo();
String ssid = info.getSSID();
int rssi = info.getRssi();
Upvotes: 2