You are reading a single comment by @kab and its replies. Click here to read the full conversation.
  • Nope. With code below I only get to the bangle logo with a line
    -> bluetooth

    then it sticks

    var myiBeacon = require("ble_ibeacon").get({
      uuid : [0xbd, 0x84, 0xb1, 0xb2, 0x1c, 0x2c, 0x00, 0xbe, 0x0c, 0xe9, 0x26, 0x70, 0x0f, 0xfe, 0x0c, 0xa0],
      rssi : -74
    });
    
    NRF.setAdvertising = function(a,b) {
      if (Array.isArray(typeof a)) a = [a,myiBeacon];
        _setAdvertising(a,b);
    };
    
    var _setAdvertising = NRF.setAdvertising;
    
    function advertiseBeacon() {
      NRF.setAdvertising(Bangle.bleAdvert);
    }
    
    if (!Bangle.bleAdvert) Bangle.bleAdvert = {};
    
    setInterval(advertiseBeacon, 60 * 1000);
    
    advertiseBeacon();
    
About

Avatar for kab @kab started