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

Member Since 22 Jun 2012
Offline Last Active Apr 14 2014 09:28 AM
-----

Posts I've Made

In Topic: Detect if Ethernet Cable is Connected

11 July 2012 - 08:51 PM

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.