Hello,
I am having some issues with a socket when swapping connections between 3G and Wi-Fi.
Lets say I am connected using 3G to a TCP/IP device and sending data. Everything is working fine.
You press the Home button on your device (so the app is paused in the background)
You turn on the Wi-Fi, so the 3G is no longer used as its now using the Wi-Fi for your data connection.
You re-open the app again (app is now un-paused) then try and send a command to the TCP/IP device, it doesn't work as you have closed the 3G connection and now connecting by Wi-Fi.
So my question is how do you tell the app to drop the connection and re-connect again to the TCP/IP device when the 3G or Wi-Fi has changed ?
I am having some issues with a socket when swapping connections between 3G and Wi-Fi.
Lets say I am connected using 3G to a TCP/IP device and sending data. Everything is working fine.
You press the Home button on your device (so the app is paused in the background)
You turn on the Wi-Fi, so the 3G is no longer used as its now using the Wi-Fi for your data connection.
You re-open the app again (app is now un-paused) then try and send a command to the TCP/IP device, it doesn't work as you have closed the 3G connection and now connecting by Wi-Fi.
So my question is how do you tell the app to drop the connection and re-connect again to the TCP/IP device when the 3G or Wi-Fi has changed ?