• Something odd is definitely happening.

    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
    

    ] "\nAi-Thinker Technology Co.,Ltd.\r\n\r\nready\r\n" <--- "\nAi-Thinker Technology Co.,Ltd.\r\n\r\nready\r\n"
    ["ATE0\r\n"
    ] "ATE0\r\r\n\r\nOK\r\n" <--- "ATE0\r\r\n\r\nOK\r\n"
    ATE0
    ["AT+GMR\r\n"
    OK
    ] "AT version:0.40.0.0(Aug 8 2015 14:45:58)\r\nSDK version:1.3.0\r\nAi-Thinker Technology Co.,L" <--- "AT version:0.40.0.0(Aug 8 2015 14:45:58)\r\nSDK version:1.3.0\r\nAi-Thinker Technology Co.,L"
    ] "Ai-Thinker Technology Co.,Ltd.\r\nBuild:1.3.0.2 Sep 11 2015 11:48:04\r\nOK\r\n" <--- "td.\r\nBuild:1.3.0.2 Sep 11 2015 11:48:04\r\nOK\r\n"

    Logging data always seems to be "behind" by one response.

About

Avatar for dave_irvine @dave_irvine started