LoginSignup
2
2

More than 5 years have passed since last update.

iBeacon Advertiser in Node.js

Last updated at Posted at 2015-09-24

iBeacon Advertiser in Node.js

iBeaconを受信するアプリを実装した際に動作を確認するため,iBeaconを発信する手段を調査した結果,余りにも簡単だったため公開します.

advertise.js

advertise.js
var Bleacon = require('bleacon');
// replace uuid
var uuid = 'ef5b1eff-7a78-4e1c-a63d-60b54c077561';
// 2 bytes assigned to major and minor [0 - 65535]
var major = 0;
var minor = 65535;

Bleacon.startScanning(uuid, major, minor);

Prerequisites

github - bleaconを参考にすると,github - noblegithub - blenoが示す条件を満たせば動作するようです.

後で調査

identifierは設定できないのか

より詳しく知りたい方

記事を書いた後により丁寧に解説されている方がいたので紹介します.

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2