Skip to content

Commit

Permalink
Beacon docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisnelson committed Oct 13, 2014
1 parent 7235ef3 commit 258a3b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sensors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ sensorOn(String type, double period, [Function callback]) : void
iBeacons
--------

iBeacons work and should be first turned on with sensorOn(WS.sensor('ibeacon'), 1000). Then, you can either subscribe to all iBeacon events on the channel 'ibeacon', or append your iBeacon UUID: 'ibeacon:2f234454-cf6d-4a0f-adf2-f4911ba9ffa6'. The fields in the callback are channel_name, UUID, powerLevel, majorNum, and minorNum.
WS.beacon(fn range, fn enter, fn exit) : void
Starts scanning for beacons and performs callbacks.
The fields in the callback are channel_name, UUID, powerLevel, majorNum, and minorNum.

Sensor Types
------------
Expand Down

0 comments on commit 258a3b9

Please sign in to comment.