Java tutorial
//package com.java2s; public class Main { public static double distanceFromRssi(int rssi, int txPower0m) { int pathLoss = txPower0m - rssi; return Math.pow(10, (pathLoss - 41) / 20.0); } }