I’m using a WizFi-630 in AP mode as a Serial to TCP device. The WizFi is acting as the TCP server as I want multiple devices to attach to it ( no more than the limit of 5).
I can connect fine to the TCP server and serial data flows both ways - but if the connection gets broken unexpectedly e.g. TCP client goes out of WiFi range then I cannot re connect to the TCP server again from the same client unless the WizFi is rebooted.
I guess that because the TCP server never see’s a socket closure request it stays open, but it doesn’t seem to have an in-activity timeout associated to it so it will never close. Also it must keep track of the ip’s of whos connected because it won’t allow that device to re-connect.
Is this the expected behavour?
Is there a way for me to re-connect to the WizFi TCP server if the connection breaks unexpectedly? ( Unfortunately I can’t just pretend the socket is open all the time and continue to send data as the client is a tablet and the socket gets destroyed -so I have to create a new conneection )