Ahh - so you want to implement the terminal, but also interpret AT commands?
You can't access the port the terminal is on, but you can move the terminal to a 'loopback' port where you can send data to it - so for example:
LoopbackA.setConsole(); USB.on('data', function(s) { if (isAnATCommand) doStuff(s); else LoopbackB.write(s); }); LoopbackB.on('data', function(s) { USB.write(s); });
@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.
Ahh - so you want to implement the terminal, but also interpret AT commands?
You can't access the port the terminal is on, but you can move the terminal to a 'loopback' port where you can send data to it - so for example: