In simple terms, my app is:
void Main() { try { while (!button pressed); Connect to tcp server send message to tcp server poll for response } catch (Exception) { Print error } }
Now, if I stop the tcp server and press the button, no sweat - the catch triggers on the send failure and then eventually
recovers when the server is restarted.
But if I pull the network cable it bombs right out .. no exception. I know it's dead as I have a threading.timer running flashing the LED each second. It just dies when the network cable is out and I press that button... Tracing the code, it seems to die at a Socket.Connect call.
I can't see any obvious way to detect if the cable is in .. if there was a way to do that I could avoid the connect call.
This is firmware 4.1.0.6
Big problem for me. I wanted to use the netduino pluses in a production environment but if they can't survive a cable pull or switch reset, then they're no good to me.