Ok, I am getting closer. I was missing NRF.updateServices. Now I see the value changing. The thing is I added it in a setInterval which fires before the connection is establish causing an error. I suppose I need to detect if there is a connection and update only then.
Is there any example/tutorial for this custom services communication?
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.
Ok, I am getting closer. I was missing NRF.updateServices. Now I see the value changing. The thing is I added it in a setInterval which fires before the connection is establish causing an error. I suppose I need to detect if there is a connection and update only then.
Is there any example/tutorial for this custom services communication?