It should be NRF.setService**s**({ (that code should have been producing an error when it runs).
Also, try leaving broadcast out - none of the examples I've posted use it and if I'm honest I'm not 100% sure what that really does Bluetooth-wise.
You shouldn't have to re-activate or anything though. Just set it and you're good to go.
However you can't update services reliable when you're connected - so make sure you have at least disconnected and reconnected before checking the services.
Finally, if you're on iPhone it seems iOS caches the available services so it's almost impossible to see an up to date list - it's probably better to use Android to check if you can.
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.
It should be
NRF.setService**s**({
(that code should have been producing an error when it runs).Also, try leaving
broadcast
out - none of the examples I've posted use it and if I'm honest I'm not 100% sure what that really does Bluetooth-wise.You shouldn't have to re-activate or anything though. Just set it and you're good to go.
However you can't update services reliable when you're connected - so make sure you have at least disconnected and reconnected before checking the services.
Finally, if you're on iPhone it seems iOS caches the available services so it's almost impossible to see an up to date list - it's probably better to use Android to check if you can.