This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
################################################################# | |
# Simple script to generate an Eddystone URL beacon as Bluetooth data readable by btmgmt | |
# | |
# To use: ./geneddystonebeacon.py [-p POWER] URL where POWER is an optional integer from -100 to 20 (per the Bluetooth spec) and | |
# URL is a URL including http(s):// to be broadcast by the beacon. Be aware that Physical Web (specifically Google Nearby) | |
# will not show the beacon unless you use https. | |
# | |
# To broadcast a beacon with that string: (as root) |