Great! Glad you got it working!
Yes, the API has changed a bit in recent versions.
setNameis now rolled into
setAdvertisingsince you can't set the name without resetting the advertising info.
You should be able to build your own up to date docs by calling
scripts/build_doc.py(I think), or you can look in the source files directly. All the documentation is stored in comments that start with
(The Puck.js specific stuff might not work on nRF52, since it's expecting an IR LED and Magnetometer)
However I'm not able to find much documentation on controlling the BLE functionality of the chip, and some
NRFmethods documented on the Espruino site are undefined in my build (for example
Is there a build which better demonstrates Espruino on the nRF52? And will the BLE api and documentation be available before the Puck.js is delivered this Winter? My apologies if documentation already exists, I'm just anxious to write some async lowpower devices :D