There isn't, but try:
setWatch(function() { var m = Puck.mag(); NRF.setAdvertising({ 0x1809 : [m.x>>8,m.x,m.y>>8,m.y,m.z>>8,m.z] }); }, BTN, {repeat:true,debounce:50,edge:"rising"});
That should pack the magnetometer data into 6 bytes that you could then read. Hope that helps!
@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.
There isn't, but try:
That should pack the magnetometer data into 6 bytes that you could then read. Hope that helps!