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

Moderator: igrr

User avatar
By Branks
#44886 Hi!
So I'm trying to create a persistent socket connection to a server, and it keeps disconencting after a few seconds.
I've read around and found a method called espconn_regist_time, which is in the file espconn.h. But I cannot work out how to call this method, as it requires an object of type "espconn", which I've not come across before.
I am just using the standard ESP8266WiFi.h and then using WiFiClient with
Code: Select allclient.connect(server, 9090)

I feel like I'm missing something here. Any help would be hugely appreciated