Turn your mac into an iBeacon.
$ brew tap watr/formulae
...
$ brew install mbeacon
$ defaults write mbeacon uuid -string "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
$ defaults write mbeacon measuredPower -integer -45
$ mbeacon -major 0 -minor 0
or
$ defaults write mbeacon measuredPower -integer -45
$ mbeacon -uuid "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" -major 0 -minor 0
'mbeacon' requires Bluetooth permission
You can't pass measuredPower
value as mbeacon
's command line argument. Because mbeacon
failes to parse negative value. Use defaults
command.
$ defaults write mbeacon measuredPower -integer -55
iBeacon's measuredPower
value is RSSI value 1 meter away from beacon.
If you want to measure real RSSI value (easily, I think)
- Set
mbeacon
'smeasuredPower
value around-55
- Find beacon from iOS device with any iBeacon app that displays RSSI value
- Move iOS device 1 meter away from beacon
Update mbeacon
's measuredPower
value using real RSSI value 1 meter away from beacon.
# e.g. RSSI value 1 meter away from beacon is -45
$ defaults write mbeacon measuredPower -integer -45
$ mbeacon -uuid "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" -major 0 -minor 0