• If you don't want to advertise Puck.js normally at all and just want Eddystone then you can just use the standard Eddystone example:

    require("ble_eddystone").advertise("goo.­gl/B3J0Oc");
    

    This also works too:

    NRF.setAdvertising([require("ble_eddysto­ne").get("goo.gl/B3J0Oc")]);
    

    You can use NRF.sleep() to completely turn off advertising, but the issue there is it turns off everything. A ScanResponse is sent in response to a query on an Advertising packet, so if there's no advertising then it's no use at all. If you use NRF.sleep() without a way to call NRF.wake() (eg. on a button press) then it effectively turns your Puck into a paperweight until you reset it :)

About

Avatar for Gordon @Gordon started