Hello,
using this code from https://www.espruino.com/BLE+Advertising
var presses = 0;
NRF.setAdvertising({},{manufacturer: 0x0590, manufacturerData:[presses]});
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.
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/web-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!