2v02 has an issue with NRF.setAdvertising - if you call setAdvertising while connected via Bluetooth, the data supplied will be ignored. However if you're advertising at the time then it will work as intended.
This behaviour is fixed in cutting edge builds, and will also be fixed in the 2v03 release when it is made.
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.
NOTE FOR BLUETOOTH ESPRUINOS
2v02 has an issue with
NRF.setAdvertising
- if you callsetAdvertising
while connected via Bluetooth, the data supplied will be ignored. However if you're advertising at the time then it will work as intended.This behaviour is fixed in cutting edge builds, and will also be fixed in the 2v03 release when it is made.