Bluetooth beacon

Last modified: 
06/02/2018 - 13:14
Platforms: 
Linux
Sailfish OS

A compact Bluetooth LE Eddystone beacon implementation in pure C for Linux. It supports broadcasting of URL, UID and TLM Eddystone frames

Todo/Features/Bugs:

  • Assumes https:// prefix, URL must be without
  • Does not encode suffixes yet
  • NID and BID are used as strings, add support for hex input
  • NID and BID defaults to 0123456789 ABCDEF
  • UID can not be set
  • Add AltBeacon
  • Add iBeacon
  • Requires root (run with sudo or use setcap (run: make setcap))
  • Pure C
  • hci0 only

Tested on

  • Tested on and working on Raspberry Pi 3
  • Tested on and working on Jolla C

Usage:

  • beacon url-without-protocol [NID BID]

Example: