how to convert it to distance? I got the link Understanding ibeacon distancing but how to get the transmitter power? to calculate the distance according to formula?
int ratio_db = txCalibratedPower - rssi;
int ratio_linear = Math.pow(10, ratio_db / 10);