Home/Support/Support Forum/On XBee Cellular in API mode how do I tell if remote end closed TCP connection?

On XBee Cellular in API mode how do I tell if remote end closed TCP connection?

0 votes
On XBee Cellular in API mode how do I tell if remote side closed TCP connection?

It seems like the last thing I get is an RX packet.
asked Jun 12, 2017 in XBee Cellular by jas New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
The transmit status frame should provide you with that data in the Status byte.
answered Jun 12, 2017 by mvut Veteran of the Digi Community (14,249 points)
Yes, however I'm not transmitting.  Sorry if the question was unclear.  I open a connection,  send some data, the remote side sends some data and then eventually closes.  How would one detect the (remote) close?   

Apparently you cannot - as I've verified with email support.  However I am experimenting with emitting an empty send to "poll" the connection to see if the send gets a "remote closed" error reliably.
No it does not have an option for that.
...