Serial1.on('data',......
Serial1.on('data',...
Serial1.read() and Serial1.available() are available but handling the data as it comes is far preferable
Serial1.read()
Serial1.available()
@Gordon 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.
Serial1.on('data',...
...Serial1.read()
andSerial1.available()
are available but handling the data as it comes is far preferable