at.cmd('', 10000, function cb(data) {
if (data && data!="ready") return cb;
at.cmd('ATE0\r\n', 10000, function (data) {
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.
Something odd is definitely happening.
Logging
data
always seems to be "behind" by one response.