I have been investigating quite a bit of formulas to estimate the distance based on RSSI and txPower and almost all of them are based on path loss models. Some of them are quite accurate and they seem to agree with the theory, but I didn't find any theory that relates to the curve fit formula and I don't understand how a formula like that can be so accurate if it isn't based on some physical property or path loss model?
So is the formula just something that you came up with or is there some theory to back it up?