wiki:IntelEdisonPhysicalWebBeacon

Version 6 (modified by sgk, 9 years ago) ( diff )

--

Intel Edisonのトップに戻る

Intel Edison で Physical Web のビーコン

Intel EdisonをPhysical Webのビーコンにする。

必要な物:

事前準備

# opkg install git
# opkg install bluez5-dev

node-uri-beaconをインストール

# git clone https://github.com/don/node-uri-beacon.git
# cd node-uri-beacon/
# npm install

途中、blenoのビルドにちょっと時間がかかる。 ときどきビルドに失敗するが、原因不明。

ホームに「0.10.28」とかいうディレクトリができるけど、削除していい。

実行

Bluetoothを使えるようにする。

# rfkill unblock bluetooth

ビーコンを起動する。

# cd examples
# node simpleBeacon.js

スマートフォンにPhysical Webアプリをインストールする。 Phsical Webアプリを起動すると、ビーコンが見えるはず。 広告するURLは、この「simpleBeacon.js」の中に書いてある。 適当に変更してOK。あまり長いURLはダメらしい。


2014/11/2

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.