Well there's the Web Bluetooth examples: http://www.espruino.com/Web+Bluetooth#two-way-communications
Just replace the line "setInterval(function(){Bluetooth.println(Puck.light());},100);NRF.on('disconnect', function() {reset()});\n", with:
"setInterval(function(){Bluetooth.println(Puck.light());},100);NRF.on('disconnect', function() {reset()});\n",
"Bangle.setHRMPower(1);Bangle.on("HRM",h=>Bluetooth.println(h.bpm));NRF.on('disconnect', function() {load()});\n",
and it'll output it.
@Gordon 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.
Well there's the Web Bluetooth examples: http://www.espruino.com/Web+Bluetooth#two-way-communications
Just replace the line
"setInterval(function(){Bluetooth.println(Puck.light());},100);NRF.on('disconnect', function() {reset()});\n",
with:and it'll output it.