-->
Page 1 of 1

Possible to use espconn_set_keepalive?

PostPosted: Thu Aug 27, 2015 12:09 am
by aussieshibe
I'm working on a project that requires that I hold a TCP connection open with my server for (ideally) as long as possible. I think I need to use espconn_set_keepalive, but I can't figure out how to get the espconn struct to pass to the SDK function.

Do I need to set up my TCP connection manually, or is there a way to get the espconn struct from the WifiClient object?

Re: Possible to use espconn_set_keepalive?

PostPosted: Thu Aug 27, 2015 9:21 am
by aussieshibe
An update on this: I decided to just use SDK commands to create the TCP connection. If there's a way to do it with the arduino wrapper (is that the right term for what arduino for esp is?) I'd still be interested to know though!

Further update: realised I was wrong in the first place about needing to do this. It seems it was my server closing the connections prematurely, not the esp.