You are reading a single comment by @michael_101 and its replies. Click here to read the full conversation.
  • Hi,

    I'm still getting the error, this is how it looks using the second scenario when at.debug enabled

    ["AT+CSTT=\"apn.net\", \"\", \"\"\r\n"
    ] "\r\nO"
    ] "K\r\n"
    ["AT+CIICR\r\n"
    ] "\r\nOK"
    ] "\r\n"
    ["AT+CIFSR\r\n"
    ] "\r\n"
    ] "ip.ip.ip.ip\r\n"
    ["AT+CIPSTART=0,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n0, CONNECT O\r\n"
    ] "\r\n0, CLOSED\r\n"
    ERROR: {"code":-15,"message":"no response"}
    ] "\r\nS"
    ] "HUT OK\r\n"
    

    And then after 10 minutes

    ["AT+CSTT=\"apn.net\", \"\", \"\"\r\n"
    ] "\r\nOK"
    ] "\r\n"
    ["AT+CIICR\r\n"
    ] "\r\nO"
    ] "K\r\n"
    ["AT+CIFSR\r\n"
    ] "\r\n"
    ] "ip.ip.ip.ip\r\n"
    ["AT+CIPSTART=0,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    Uncaught Error: 0, CONNECT OK already registered
     at line 1 col 44
    if(h[a])throw Error(a+" already registered");h[a]=b
                                               ^
    in function "registerLine" called from line 1 col 174
    ...CONNECT FAIL'),socks[a]=!0}),at.registerLine(a+'­, CONNECT FA...
                                  ^
    in function "c" called from line 1 col 25
    g=void 0;var b;c&&(b=c(a))?(g=e,c=b):clearTimeout(d);­void 0=...
                            ^
    in function "g" called from line 2 col 4
    g(f)}b=b.substr(a+1);if(p&&d)return q("");"\n"==b[0]&&(b=b.s...
       ^
    in function called from system
    ] "\r\n0, CONNEC"
    ] "T OK\r\n"
    ] "\r\n> "
    ] "\r\n0, SE"
    ] "ND OK\r\n\r\n+RECEIVE,0,159:\r\nHTTP/1.1 200 OK\r\nConnection: close\r\nDate: Mon, 18 Jan 2021 15:47:55 GMT\r\nContent-Type: application/json; charset="
    ["AT+CIPCLOSE=0,1\r\n"
    ] "\r\n0, CLOSE OK\r\n"
    ["AT+CIPSTART=0,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n0,"
    ] " CONNECT OK\r\n"
    ] "\r\n> "
    ] "\r\n0, SEN"
    ] "D OK\r\n\r\n+RECEIVE,0,159:\r\nHTTP/1.1 200 OK\r\nConnection: close\r\nDate: Mon, 18 Jan 2021 15:48:08 GMT\r\nContent-Type: application/json; charset=u"
    ["AT+CIPCLOSEE=0,1\r\n"
    ] "\r\n0, CLOSE OK\r\n"
    ] "\r\n"
    ] "SHUT OK\r\n"
    

    Thank you

About

Avatar for michael_101 @michael_101 started