Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeuckm committed Nov 9, 2013
1 parent 819eacc commit d07f2c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### Usage ###

See this example app for usage: [TiBeacons Example App](https://github.com/jbeuckm/TiBeacons-Example-App)

Become an iBeacon:

```javascript
Expand All @@ -11,7 +13,9 @@ TiBeacons.addEventListener("advertisingStatus", function(event) {

TiBeacons.startAdvertisingBeacon({
uuid : "00000000-0000-0000-0000-000000000000",
identifier : "TiBeacon Test"
identifier : "TiBeacon Test",
major: 1,
minor: 2
});
```

Expand All @@ -22,7 +26,7 @@ Find and range iBeacons:
var TiBeacons = require('org.beuckman.tibeacons');

TiBeacons.addEventListener("beaconRanges", function(event) {
alert(event.beacons);
alert(event.beaconRanges);
});

TiBeacons.startRangingForBeacons({
Expand Down
13 changes: 8 additions & 5 deletions README.md~
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ Become an iBeacon:
var TiBeacons = require('org.beuckman.tibeacons');

TiBeacons.addEventListener("advertisingStatus", function(event) {
Ti.API.info(event);
$.trace.add(Ti.UI.createLabel({
text : JSON.stringify(event)
}));
Ti.API.info(event.status);
});

TiBeacons.startAdvertisingBeacon({
uuid : "00000000-0000-0000-0000-000000000000",
identifier : "TiBeacon Test"
});
```

Expand All @@ -27,4 +29,5 @@ TiBeacons.startRangingForBeacons({
uuid : "00000000-0000-0000-0000-000000000000",
identifier : "TiBeacon Test"
});
```
```

Binary file not shown.

0 comments on commit d07f2c2

Please sign in to comment.