I noticed there are two formula to get distance by beacon LINK
(1)d = 10^((Measured Power - Instant RSSI)/10*N)
N is the constant for the environmental factor. It takes a value between 2-4. The measured power is the RSSI value at one meter.
This is another formulaLINK:
(2)d=A*(r/t)^B+C
r is the RSSI measured by the device and t is the reference RSSI at 1 meter. A, B, and C are constants.
Which one is the formula I should use? Or Are these two formulas equivalent?