cyo
cyo

Reputation: 193

Reading Rssi value without connecting any wi-fi

Is there any way to read rssi value from 3 modem at the same time in android without connecting any of them

Upvotes: 1

Views: 1423

Answers (2)

J.C.Morris
J.C.Morris

Reputation: 803

In conjunction with the previous answer, you can add code inside of the following timer to check it every few seconds. Of course you can modify how long you want the timer to execute.

 var timer = new Timer();
         timer.Tick += new EventHandler(timer_Tick);
         timer.Interval = 2000; //2 seconds
         timer.Start(); 

 void timer_Tick(object sender, EventArgs e)
{
    ..your code here..
}           

Upvotes: 0

inazaruk
inazaruk

Reputation: 74790

Take a look at ScanResult, it has field level which is "detected signal level in dBm".

You can use WifiManager.getScanResults() to get latest scan results.

Upvotes: 1

Related Questions