I've got a project which provides sensor information through a web interface. Basic stuff really, but I'm running into an issue where, through no fault of the netduino, I'm losing the network connection at the device. The only current soluition is to reboot the device, and this is really impractical, so I'm looking for ways to handle this in the code. I initially thought to reboot the device in the code if the network drops, but that's not great either because I can image a situation where it will get into a reboot loop.
So, I've just added error handling using the NetworkAvailablityChanged event of the NetworkChange class of the Microsoft.SPOT.Net.NetworkInformation namespace. This allows me to handle when the device has had connection but loses it temporarially. The problem, though, is that the device has a static IP address. I need a way to determine if it is connected to the network at boot up to prevent errors, and just checking that it's IP isn't 0.0.0.0 won't work.
It appears that the OperationalStatus property isn't available for the NetworkInterface in the framework, so I'm looking for another idea.