Hi, I'll remove the line of code concerning the
writer.WriteByte(0x01);
and test as you suggest! This is instead my js code running on Bangle:
g.setFontAlign(0,0); g.setFont("Vector",25); var gatt; NRF.on('connect', function(addr) { g.clear(); g.setColor(255,0,0); g.drawString("Connected", g.getWidth()/2, g.getHeight()/2); setTimeout(()=>g.clear(), 1000); }); Bluetooth.on('data', function(d) { g.drawString(d, g.getWidth()/2, g.getHeight()/2); }); NRF.on('disconnect', function(reason) { g.clear(); g.setColor(0,0,255); g.drawString("Disconnected", g.getWidth()/2, g.getHeight()/2); setTimeout(()=> g.clear(), 1000); });
Is Bluetooth.on() called once the BLE received packets ?
@Riccardokhm started
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,
I'll remove the line of code concerning the
and test as you suggest!
This is instead my js code running on Bangle:
Is Bluetooth.on() called once the BLE received packets ?