CableConnectivityChanged event is gone in NETMF 4.3?

I am porting from MF 4.2 to 4.3 and it seems that in the EthernetENC28J60 class the event property CableConnectivityChanged and the delegate CableConnectivityChangedEventHandler is not there anymore. Did it move to some other assembly? How do I detect when a network cable is plugged in using a Gadgeteer event?

I think I found the change needed. Instead of using this function:


        /// <summary>         
        /// Start the Web Server         
        /// </summary>         
        /// <param name="IPAddress"></param>         
        public bool StartServer(GHI.Networking.EthernetENC28J60 _eth,  string _IPAddress)
        {
            ipAddress = _IPAddress;
            m_eth = _eth;
            m_eth.CableConnectivityChanged += new GHI.Networking.EthernetENC28J60.CableConnectivityChangedEventHandler(m_eth_CableConnectivityChanged);
            WebServer.StartLocalServer(ipAddress, 80);
            Debug.Print("Web server started at: " + _IPAddress );
            return true;
        }


I will use this function:


        /// <summary>         
        /// Start the Web Server         
        /// </summary>         
        /// <param name="IPAddress"></param>         
        public bool StartServer(GHI.Networking.EthernetENC28J60 _eth, string _IPAddress)
        {
            ipAddress = _IPAddress;
            m_eth = _eth;
            Microsoft.SPOT.Net.NetworkInformation.NetworkChange.NetworkAvailabilityChanged += NetworkChange_NetworkAvailabilityChanged;
            WebServer.StartLocalServer(ipAddress, 80);
            Debug.Print("Web server started at: " + _IPAddress);
            return true;
        }


@ dspacek - Yes, you got it :slight_smile: