Ok, this is now done and will be in 1v92. You can do:
NRF.setServices({ 0x180D: { // heart_rate 0x2A37: { // heart_rate_measurement notify: true, value : [0x06, hr], }, 0x2A38: { readable: true, value: [0x02] } } }, {advertise:[0x180D]});
to start advertising the heart rate service.
@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.
Ok, this is now done and will be in 1v92. You can do:
to start advertising the heart rate service.