watching advertisements not working chrome

Posted on
  • Hello,
    using this code from https://www.espruino.com/BLE+Advertising­
    var presses = 0;
    NRF.setAdvertising({},{manufacturer: 0x0590, manufacturerData:[presses]});

    setWatch(function() {
    presses++;
    NRF.setAdvertising({},{manufacturer: 0x0590, manufacturerData:[presses]});
    }, BTN, {edge:"rising", repeat:1, debounce:20})

    I am trying to see the presses on https://googlechrome.github.io/samples/w­eb-bluetooth/watch-advertisements.html

    but I can't see the manufacturer data coming in ? Any idea what could be changed to make it work ?

    thank you!

  • Most probably you need to fix Chrome :-)

    I just tried it in latest Chrome on Windows 11 and don't see it either. No manufacturerData output in that example even if I double checked from phone that the data is really there.

    The page even says " It is currently partially implemented in Android M, Chrome OS, Mac, and Windows 10." No Linux there BTW

  • Yes, I'm not sure quite where this sits on Linux.

    It'd be worth trying it on an Android phone and seeing if you have more success - you may also need to enable it via chrome://flags

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

watching advertisements not working chrome

Posted by Avatar for user155285 @user155285

Actions