Ronetworkconfiguration (hd2000 only) – BrightSign HD2000 Object Reference Manual User Manual

Page 54

Advertising
background image

roNetworkConfiguration (HD2000 only)


Object creation:
 CreateObject("roNetworkConfiguration", 0)

The ifNetworkConfiguration interface provides (methods do not take effect until Apply is called):
 rotVOID SetDHCP(rotSTRING key, rotOBJECT value)

o

Enable DHCP. Disables all other settings.

 rotBOOL SetIP4Address(rotSTRING ip)
 rotBOOL SetIP4Netmask(rotSTRING netmask)
 rotBOOL SetIP4Broadcast(rotSTRING broadcast)
 rotBOOL SetIP4Gateway(rotSTRING gateway)

o

Set IPv4 interface configuration. All values must be set – no cleverness is applied (unlike

ifconfig shell command). Parameter is a string dotted decimal quad (i.e. “192.168.1.2” or
similar). Returns true on success.

o

Example

nc.SetIP4Address("192.168.1.42")
nc.SetIP4Netmask("255.255.255.0")
nc.SetIP4Broadcast("192.168.1.255")
nc.SetIP4Gateway("192.168.1.1")

 rotBOOL SetDomain(rotSTRING domain)

o

Set the device domain name. This will be appended to names to fully qualify them. It is not

necessary to call this. Returns true on success.

o

Example

nc.SetDomain("roku.com")

 rotVOID AddDNSServer(rotSTRING server)

o

When the object is created there are no DNS servers, this adds another server to the list. There

is currently a maximum of three but adding more will not fail. Returns true on success. There
is no way to remove all the servers, just re-create the object.

 rotSTRING GetFailureReason(rotVOID)

o

Give more information when a member function has returned false.

 rotBOOL Apply(rotVOID)

o

Apply the requested changes to the network interface. This may take several seconds to

complete.










54

Advertising
This manual is related to the following products: