You are reading a single comment by @michael_101 and its replies. Click here to read the full conversation.
  • Thank you @Gordon! It's better now.

    There is a similar bug with Uncaught Error: 0, SEND OK already registered

    Here is 2 examples..

    Example 1:

    ["AT+CIPSTART=0,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n0, CONNECT OK\n"
    ] "\r\n0, CLOED\r\n"
    ] "\r\nERROR\r\n"
    

    then every 10 minutes

    ["AT+CIPSTART=1,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n1, CONNECT OK\r\n"
    ] "\r\n1, CLOSED\r\n"
    ERROR: {"code":-15,"message":"no response"}
    Uncaught Error: 0, SEND 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 254
    ...+', SEND FAIL'),busy=!1,''}),at.registerLine(a+',­ SEND FAIL'...
                                  ^
    in function called from system
    

    when the sockets debug look like this

    {
      "socks": [ true ],
      "sockData": [
        "",
        "",
        "",
        "",
        "",
        "0124": "undefined"
       ]
     }
    

    Example 2:

    ["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, END OK\r\n"
    ] "\r\n+RE"
    ] "CEIVE,0,124:\r\nHTTP/1.1 408 Request Timeout\r\nConnection: close\r\nDate: Thu, 21 Jan 2021 14:32:35 GMT\r\nContent-Length: 0\r\n\r\n"
    ] "\r\n, CLOSED\r"
    ] "\n"
    

    then every 10 minutes

    ["AT+CIPSTART=1,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n1, CONNECT OK\r\n"
    ] "\r\n1, CLOSED\r\n"
    ERROR: {"code":-15,"message":"no response"}
    Uncaught Error: 0, SEND 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 254
    ...+', SEND FAIL'),busy=!1,''}),at.registerLine(a+',­ SEND FAIL'...
                                  ^
    in function called from system
    

    when the sockets debug look like this

    {
      "socks": [ true, undefined ],
      "sockData": [
        "",
        "",
        "",
        "",
        ""
       ]
     }
    

    Thanks again.

About

Avatar for michael_101 @michael_101 started