Skip to main content

INetworkControllerProvider Interface

NuGet: GHIElectronics.TinyCLR.Devices.Network
Assembly: GHIElectronics.TinyCLR.Devices.Network
Namespace: GHIElectronics.TinyCLR.Devices.Network.Provider

Provider contract for a network controller.

public interface INetworkControllerProvider : IDisposable, INetworkProvider

Properties​

InterfaceType​

NetworkInterfaceType InterfaceType { get; }

Transport type of the interface — Ethernet, WiFi, or PPP.

CommunicationInterface​

NetworkCommunicationInterface CommunicationInterface { get; }

Physical bus carrying the interface — built-in MAC, SPI, or UART.

Methods​

Enable()​

void Enable()

Brings the interface up.

Disable()​

void Disable()

Brings the interface down.

Suspend()​

void Suspend()

Suspends the interface to a low-power state.

Resume()​

void Resume()

Resumes a suspended interface.

GetLinkConnected()​

bool GetLinkConnected()

Returns true when the physical link is up.

Returns bool

GetAccessPointClientLinkConnect(WiFiNetworkInterfaceSettings settings)​

bool GetAccessPointClientLinkConnect(WiFiNetworkInterfaceSettings settings)

Returns true when a station is connected to this access point.

Returns bool

GetIPProperties()​

NetworkIPProperties GetIPProperties()

Returns the current IP address, subnet, gateway, and DNS servers.

Returns NetworkIPProperties

GetInterfaceProperties()​

NetworkInterfaceProperties GetInterfaceProperties()

Returns interface-specific properties such as the MAC address.

Returns NetworkInterfaceProperties

SetInterfaceSettings(NetworkInterfaceSettings settings)​

void SetInterfaceSettings(NetworkInterfaceSettings settings)

Applies the interface settings (IP address, DHCP, DNS).

SetCommunicationInterfaceSettings(NetworkCommunicationInterfaceSettings settings)​

void SetCommunicationInterfaceSettings(NetworkCommunicationInterfaceSettings settings)

Applies the underlying physical-bus settings.

Events​

NetworkLinkConnectedChanged​

event NetworkLinkConnectedChangedEventHandler NetworkLinkConnectedChanged

Raised when the physical link goes up or down.

NetworkAddressChanged​

event NetworkAddressChangedEventHandler NetworkAddressChanged

Raised when the IP address, gateway, or DNS servers change.