NurApiEthConfig Class

Holds information about Ethernet settings of connected module if available (GetEthConfig)

Definition

Namespace: NurApiDotNet
Assembly: NordicID.NurApi.Net (in NordicID.NurApi.Net.dll) Version: 4.0.0
C#
public class EthConfig
Inheritance
Object    NurApiEthConfig

Constructors

NurApiEthConfig Used to create an empty NUR module Ethernet configure.

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

Fields

addrType (Get/Set) Address type 0=DHCP(default) 1=STATIC
gw (Get/Set) Gateway (used in static IP mode)
hostip (Get/Set) Client host IP (if Mode=Client)
hostmode (Get/Set) hostmode 0=Server (default) 1=Client. If server, Sampo listens port 'serverPort' for client connections (default). If Client, Sampo automatically tries to initialize connection to 'hostip' : 'hostPort' server.
hostPort (Get/Set) Client host port (if Mode=Client)
ip (Get) Current IP address of Sampo device
mac (Get/(Set only if using transport as broadcast)) MAC address of device. Used for addressing when sending new settings via Broadcast.
mask (Get/Set) Subnet mask (used in static IP mode)
reserved (Get/Set) reserved for future usage
serverPort (Get/Set) Server port where client connects to when hostmode=Server. default 1300.
staticip (Get/Set) Static IP. When using static IP address, set addrType to 1=STATIC
title Get / Set the title of an Ethernet Sampo device.
transport Transport method used with NurApiSetEthConfig(). if transport = 0 then ethernet settings will be set to Sampo via current connection.(USB,serial or TCP) if transport = 1 then ethernet settings will be set to Sampo using broadcast message. This method requires that correct 'mac' address has been set to structure. MAC address is used for filtering that only certain device receives new configurations.
version (Get) Current Revision of ethernet CPU firmware

See Also