Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By aussieshibe
#27134 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?
User avatar
By aussieshibe
#27165 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.