Ahh, so I have to throw away the 'ATE0' response because echo is not off at the time of issuing the command to turn echo off.
at.cmd('', 10000, function cb(data) {
if (data && data!="ready") return cb;
at.cmd('ATE0\r\n', 10000, function cb(data) {
if (data=="ATE0") return cb;
console.log(data);
// ask for version
at.cmd('AT+GMR\r\n', 10000, function(data) {
console.log(data);
});
});
});
// power up
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 I have to throw away the 'ATE0' response because echo is not off at the time of issuing the command to turn echo off.