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

    It's definitely a lot better but I did some more tests, I shut down the remote service while continuing the POST requests to it (every 30 seconds), I got a 'no response' message as expected but it seems to be a memory leak here.
    BTW, 1 is when the service is up and running...

    Loading 12442 bytes from flash...
    Running onInit()...
    >initGPRS()
    =undefined
    ==========
    FREE MEMORY BEFORE STARTING REQUESTS: 928
    ==========
    Response: 1
    ==========
    FREE MEMORY - POST 664
    ==========
    Response: 1
    ==========
    FREE MEMORY - POST 664
    ==========
    Response: 1
    ==========
    FREE MEMORY - POST 664
    ==========
    Response: 1
    ==========
    FREE MEMORY - POST 664
    ==========
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 563
    ==========
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 473
    ==========
    New interpreter error: LOW_MEMORY,MEMORY
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 152
    ==========
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 430
    ==========
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 434
    ==========
    ERROR: Error processing Serial data handler - removing it.
    Execution Interrupted during event processing.
    New interpreter error: CALLBACK
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 136
    ==========
    ERROR: Ctrl-C while processing interval - removing it.
    Execution Interrupted during event processing.
    > 
    

    With Debug (Service down all time):

    Loading 12442 bytes from flash...
    Running onInit()...
    >initGPRS()
    =undefined
    ==========
    FREE MEMORY BEFORE STARTING REQUESTS: 927
    ==========
    >sim.gprs.at.debug()
    ={
      line: "",
      lineCallback: undefined,
      handlers: {
        "+RECEIVE": function (b) { ... },
        "+D": function (b) { ... }
       },
      lineHandlers: {
        "0, CLOSE": function (b) { ... },
        "1, CLOSE": function (b) { ... },
        "2, CLOSE": function (b) { ... },
        "3, CLOSE": function (b) { ... },
        "4, CLOSE": function (b) { ... }
       },
      waiting: [  ],
      dataCount: 0 }
    ["AT+CIPSTART=0,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ["AT+CIPSTART=1,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ["AT+CIPSTART=2,\"TCP\",\"fake.server.co­m\",80\r\n"
    New interpreter error: LOW_MEMORY,MEMORY
    ] "\r\nOK\r\n"
    ] "\r\n0, CONNECT FAIL\r\n"
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 152
    ==========
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 430
    ==========
    ["AT+CIPSTART=0,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n1, CONNECT FAIL\r\n"
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 434
    ==========
    ["AT+CIPSTART=1,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ] "\r\n2, CONNECT FAIL\r\n"
    ["AT+CIPSTART=2,\"TCP\",\"fake.server.co­m\",80\r\n"
    ] "\r\nOK\r\n"
    ERROR: Error processing Serial data handler - removing it.
    Execution Interrupted during event processing.
    New interpreter error: CALLBACK
    ERROR: { "code": -15,
      "message": "no response"
     }
    ==========
    FREE MEMORY - ERROR POST 136
    ==========
    ["AT+CIPSTART=2,\"TCP\",\"fake.server.co­m\",80\r\n"
    ERROR: Ctrl-C while processing interval - removing it.
    Execution Interrupted during event processing.
    > 
    
About

Avatar for michael_101 @michael_101 started