Ronetworkstatistics – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 225

Advertising
background image

217

roNetworkStatistics

This object allows you to monitor and post how much bandwidth the player is using.

Object Creation: The roNetworkStatistics object is created with a single parameter.

CreateObject("roNetworkStatistics", network_interface as Integer)

The

network_interface parameter is used to distinguish between the following:

0 for the Ethernet port (if available) on the rear of the BrightSign player.

1 for the optional internal Wi-Fi.


Interfaces: ifNetworkStatistics

The ifNetworkStatistics interface provides the following:

GetTotals() As roAssociativeArray: Yields the total network figures since booting up.

GetIncremental() As roAssociativeArray: Yields the total network figures since booting up. Then, every
subsequent time this method is called, it will yield the amount each figure has changed since the previous call.

Note: If multiple instances of roNetworkStatistics are created, GetIncremental() calls for each instance will track
changes independently.

Both methods return the following statistics as floating point values:

o tx_carrier_errors
o tx_packets
o rx_packets
o tx_errors
o rx_frame_errors

Advertising