-
Just a question: is the event handler for the 'data' event called each time the Bangle receives something , correct?
not exactly. Bluetooth is instance of Serial that works as console. So yes if you send something to Nordic UART RX characteristics it will be received and data event is called just like when Serial or USB serial port receiving some characters.
If you have your own BLE writable characteristics it is not related to Bluetooth serial object or 'data' event.
http://www.espruino.com/Reference#l__global_Bluetooth
http://www.espruino.com/Reference#l_Serial_data
Yeah sorry, the first connect within the .on('Connect') was removed, actually the only one is the last on the bottom.
Just a question: is the event handler for the 'data' event called each time the Bangle receives something , correct?
Here is my final code:
The thing is that when I send something from my laptop, bangle does not seem to receive it.