Thank you for the advice! I installed "nRF UART 2.0" and tried
var v;
function g(s) {
v=s;
Bluetooth.write(s);
}
If you write without a semicolumn once you connected to the Puck it says "unexpected EOF". With a semicolumn I succeeded to light the LED on from here https://www.espruino.com/Puck.js+BLE+UART
If you write the function(with or without) a semicolumn in "nRF UART 2.0" or "nRF Connect" with notifications enabled I receive what I wrote, for example in "nRF UART 2.0" I have:
TX:g(5);
RX:g(5);
TX:g(9)\n
RX:g(9)\n
Do you think this could be Android specific issue as appeared in the Security thread ?
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.
Hi @Gordon,
Thank you for the advice! I installed "nRF UART 2.0" and tried
If you write without a semicolumn once you connected to the Puck it says "unexpected EOF". With a semicolumn I succeeded to light the LED on from here https://www.espruino.com/Puck.js+BLE+UART
If you write the function(with or without) a semicolumn in "nRF UART 2.0" or "nRF Connect" with notifications enabled I receive what I wrote, for example in "nRF UART 2.0" I have:
TX:g(5);
RX:g(5);
TX:g(9)\n
RX:g(9)\n
Do you think this could be Android specific issue as appeared in the Security thread ?
Thank you.