After establishing a TCP connection, randomly getting EOF

I’m using an Xbee S6B in API mode as a TCP client. I connect to the AP and then to my TCP server (by setting the client port to 0) without any issues. However, at random times my TCP server receives an EOF from the client when it shouldn’t.

I never instruct the Xbee to close the TCP socket. I am certain the Xbee and the server remain connected to the AP when the EOF is received. The server is not configured to use a keepalive and should leave the pipe open until closed.

Any ideas on why this may be happening?

Check the TM and TS commands on the XBee module.

1 Like

Thank you! Solved my problem.