Class: Sys

Sys

Provides access to extended user interface properties and methods.


Example
var sys = $wat.load('sys')[0];

Members


<readonly> ftpDir :object

Gets an object representing the FTP dir. This will represent the state of the FTP dir at the time this property is read. To re-read the FTP directory, this property will need to be re-read. The entries property contains a list of the file/directories contained in the FTP folder.

Do not use for WS API.

Type:
  • object
Properties:
Name Type Description
path string

Full path from the system root

name string

The name of the object without the leading path elements

isFile bool

True when the object represents a file

isDir bool

True when the object represents a directory

size number

The file size in bytes (typically 4096 for directories)

created date

The creation time of the object

modified date

The last modification time of the object

elements Array.<object>

The files/directories contained, if this object is a directory

Since:
  • 2.3

<readonly> hwBuild :string

Gets the hardware build identifier of the device.

Type:
  • string
Since:
  • 1.4

<readonly> ip :wat.IPAddress

Gets the IP address of the system.

Type:
Since:
  • 1.4

<readonly> memory :sys.MemInfo

Get an object that provides information about the system memory usage.

Type:
Since:
  • 1.4

<readonly> serialNumber :string

Gets the serial number of the device.

Type:
  • string
Since:
  • 1.4

<readonly> serials :Array.<wat.SerialPort>

An array of the serial ports available on the main board.

NOTE: depending on the model used, there may be 1 or 2 serial ports available on the main board, and these ports may or may not be wired out to connectors on the outside of the box. Check the documentation for the model to determine what is available.

Type:
Since:
  • 1.4

<readonly> temperature :sys.TempInfo

Get an object that provides information about the system temperature.

Type:
Since:
  • 2.3

<readonly> watchdog :sys.Watchdog

Gets the system watchdog.

Type:
Since:
  • 1.4

Methods


clearAppCache()

Clears the application cache. This will clear ALL items in the application cache, including any that may have been saved by other applications.

Since:
  • 1.4

reboot()

Reboots the device.

Since:
  • 1.4