Turn your mac into an iBeacon.
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)
mbeacon
’s measuredPower
value around -55
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