Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Ballew's Content

There have been 1 items by Ballew (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#31877 Detect if Ethernet Cable is Connected

Posted by Ballew on 11 July 2012 - 08:51 PM in Netduino Plus 2 (and Netduino Plus 1)

using Microsoft.SPOT.Net.NetworkInformation;

static bool isNetworkAvailable = false;

static void NetworkChange_NetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e)         
{
             isNetworkAvailable = e.IsAvailable;
             Debug.Print(DateTime.UtcNow.ToString("u") + ": " + (isNetworkAvailable ? "CONNECTED" : "DISCONNECTED"));
}

from How to reboot netduino + from code on a socket exception




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.