Losing data using AT#SRECV

4 thoughts on “Losing data using AT#SRECV

  1. I am using the AT#SSENDEXT command to send data to a TCP socket, and AT#SRECV to receive data from the socket. The problem is, that i sometimes losing the data from the socket, when it closes.

    Is there some way to avoid losing the data when the socket closes?

     

    The setup is:

    AT#SCFG=1,1,0,0,100,10
    AT#SCFGEXT=1,1,0,0
    AT#SD=1,0,<port>,<ip>,0,0,1

    I have hidden the port and ip addess in this example

     

  2. Normal
    0

    21

    false
    false
    false

    DA
    X-NONE
    X-NONE

    MicrosoftInternetExplorer4

    If I don´t
    get the data out within about one second get a NO CARRIER and then the socket
    closes. Else i close it with an AT#SH=1. I would like to let the socket stay
    open until I close it. 

    1. The socket closes because the server application finishes the connections I suppose, check there what is happening. If both parties take no closing action then the socket should stay opened indefinitely, theoretically.