Coder Social home page Coder Social logo

bluez-ibeacon's Introduction

bluez-ibeacon

Complete example of using Bluez as an iBeacon

How to use

To use this example you will need to install Bluez either compiled by hand or through a development packaged libbluetooth. BTLE support requires a recent version of Bluez so make sure to install the latest version available.

After installing Bluez you can make the ibeacon binary in the bluez-beacon directory.

Fire up XCode and run the BeaconDemo app on a device that supports BTLE such as the iPhone 5 or later. The information displayed on screen is needed to run the Bluez beacon.

Take the UUID displayed in the app along with the major and minor version and plug those into the ibeacon binary like this:

./ibeacon 200 <UUID> <Major Number> <Minor Number> -29

If everything goes correctly you will get an alert on the device that you have entered the region of the beacon. It can take a few seconds to register so you may want to give it time if it doesn't pick up instantly. You may also want to double check that the UUID is entered correctly if it doesn't seem to work.

The passbook example uses a UUID of e2c56db5-dffb-48d2-b060-d0f5a71096e0, a marjor number of 1 and a minor number of 1. After installing it you can use the ibeacon program to advertise for it with the following options:

./ibeacon 200 e2c56db5dffb48d2b060d0f5a71096e0 1 1 -29

Note

I've used both the IOGEAR Bluetooth 4.0 USB Micro Adapter (GBU521) and the Cirago Bluetooth 4.0 USB Mini Adapter (BTA8000) successfully.

License

MIT - See the LICENSE file

bluez-ibeacon's People

Contributors

carsonmcdonald avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.