Thanks @Gordon! Yet another question somewhat related. It seems I can't use a const in NRF.setServices(). Is there a reason; I'd really rather not have to use a literal each time for the UUID strings?
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.
Thanks @Gordon! Yet another question somewhat related. It seems I can't use a const in NRF.setServices(). Is there a reason; I'd really rather not have to use a literal each time for the UUID strings?
This works:
This doesn't (and doesn't throw an error to the IDE when loaded):