Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. var bleno = require('bleno'),
  2. uuid = '842AF9C408F511E39282F23C91AEC05E',
  3. major = 65000,
  4. minor = 65000,
  5. measuredPower = -59;
  6.  
  7. var intervalId = setInterval(function() {
  8. bleno.stopAdvertising();
  9. minor++;
  10. if (minor > 65009) {
  11. clearInterval(intervalId);
  12. console.log("Bye!");
  13. return;
  14. }
  15. console.log(minor);
  16. bleno.startAdvertisingIBeacon(uuid, major, minor, measuredPower);
  17. }, 2000);
  18.  
  19. console.log("CES Scavenger Hunt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement