Has anyone already managed to turn Puck.js into an Apple iBeacon?
So far, I used these information from Stackoverflow: http://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile and the NRF.setAdvertising function to test with the following code:
var g = [0xd6, 0xbe, 0x89, 0x8e, 0x40, 0x24, 0x05, 0xa2, 0x17, 0x6e, 0x3d, 0x71, 0x02, 0x01, 0x1a, 0x1a, 0xff, 0x4c, 0x00, 0x02, 0x15, 0xe2, 0xc5, 0x6d, 0xb5, 0xdf, 0xfb, 0x48, 0xd2, 0xb0, 0x60, 0xd0, 0xf5, 0xa7, 0x10, 0x96, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xc5, 0x52, 0xab, 0x8d, 0x38, 0xa5]; NRF.setAdvertising(g);
When sending the code to Puck.js, I get the following error message:
Uncaught Error: Got BLE error code 9 at line 1 col 21 NRF.setAdvertising(g); ^ =undefined
Any ideas? Thanks in advance!
@LongJogger started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Has anyone already managed to turn Puck.js into an Apple iBeacon?
So far, I used these information from Stackoverflow:
http://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile
and the NRF.setAdvertising function to test with the following code:
When sending the code to Puck.js, I get the following error message:
Any ideas? Thanks in advance!