I am trying to get the Wi-Fi WiFi RS21 Module working on my Cobra board.
I get exceptions when i run it.
In the example before the try catch of the WiFi.Enable there is this line:
NetworkChange.NetworkAvailabilityChanged += new NetworkAvailabilityChangedEventHandler(NetworkChange_NetworkAvailabilityChanged);
when stepping through the code, it jumps to this method before the try catch WiFi.Enable can finish.
so if there is an error in try it will not jump to the catch of WiFi.Enable, it just stops.
So my question is, shouldn’t that NetworkChange, be moved elsewhere after the success of the try ?