However I'm not able to find much documentation on controlling the BLE functionality of the chip, and some NRF methods documented on the Espruino site are undefined in my build (for example NRF.setName())
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
Great! Glad you got it working!
Yes, the API has changed a bit in recent versions. setName is now rolled into setAdvertising since 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 /*JSON;
(The Puck.js specific stuff might not work on nRF52, since it's expecting an IR LED and Magnetometer)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem