Does ScanResult.level (signal level) have a max and min value?
I want to show a wi-fi signal level image, but I have to know if ScanResult.level has a max and min value for matching right image.
Thanks.
As you can read in the document you linked to, that value is specified in dBm. Designing the mapping between dBm and bars is a more complicated issue than you may think - remember the whole story about iPhone losing signal when being hold in a "wrong" manner? It was mostly just a badly designed dBm-to-bars mapping: http://www.anandtech.com/show/3821/iphone-4-redux-analyzing-apples-ios-41-signal-fix
You can quite safely assume, that this value will range between -10 and -100 dBm (based upon taking a look at WiFi Analyzer app and Wikipedia article about dBm), but you shouldn't use a linear mapping. Take a look at the graphs in the article about iPhone for the idea how it should look.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With