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;
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.
Great! Glad you got it working!
Yes, the API has changed a bit in recent versions.
setName
is now rolled intosetAdvertising
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
;https://github.com/espruino/Espruino/blob/master/libs/bluetooth/jswrap_bluetooth.c
https://github.com/espruino/Espruino/blob/master/libs/puckjs/jswrap_puck.c
(The Puck.js specific stuff might not work on nRF52, since it's expecting an IR LED and Magnetometer)