Skip to content

device_constants_get

Guest

Returns device constants.

Note

Even when using Remote Access this method call is answered by the local device - the target attribute is ignored.

Params

N/A

Return

attribute description
com1_port_offset*
unsigned integer
COM 1 interface's IP port offset (relative to port base, defined in the configuration)
com2_port_offset*
unsigned integer
COM 2 interface's IP port offset (relative to port base, defined in the configuration)
com3_port_offset*
unsigned integer
COM 3 interface's IP port offset (relative to port base, defined in the configuration)
ts1_port_offset*
unsigned integer
Terminal server 1 interface's IP port offset (relative to port base, defined in the configuration)
ts2_port_offset*
unsigned integer
Terminal server 2 interface's IP port offset (relative to port base, defined in the configuration)
ts3_port_offset*
unsigned integer
Terminal server 3 interface's IP port offset (relative to port base, defined in the configuration)
ts4_port_offset*
unsigned integer
Terminal server 4 interface's IP port offset (relative to port base, defined in the configuration)
ts5_port_offset*
unsigned integer
Terminal server 5 interface's IP port offset (relative to port base, defined in the configuration)
web_session_inact_timeout*
unsigned integer
Number of seconds since the last request after which the session is terminated
file_distribution_maxrate*
Firmware Multicast Max Rate
Maximum speed to use when uploading firmware to other devices via multicast in Kib/s
file_distribution_losslimit*
Firmware Multicast Loss Limit
Maximum loss limit to use when uploading firmware to other devices via multicast as percentage
keyring_psk_length*
Keyring PSK Length
The length of the PSK secret in bytes (not bits)

Firmware Multicast Max Rate

attribute description
default*
unsigned int
The default value in Kib/s
min*
unsigned int
Minimal allowed value in Kib/s
max*
unsigned int
Maximal allowed value in Kib/s

Firmware Multicast Loss Limit

attribute description
default*
unsigned int
The default value as percentage
min*
unsigned int
Minimal allowed value as percentage
max*
unsigned int
Maximal allowed value as percentage

Keyring PSK Length

attribute description
default*
unsigned int
The default value in bytes (not bits)
min*
unsigned int
Minimal allowed value in bytes (not bits)
max*
unsigned int
Maximal allowed value in bytes (not bits)

Example

The result object value:

{
  "com1_port_offset": 81,
  "com2_port_offset": 82,
  "com3_port_offset": 83,
  "ts1_port_offset": 92,
  "ts2_port_offset": 93,
  "ts3_port_offset": 94,
  "ts4_port_offset": 95,
  "ts5_port_offset": 96,
  "web_session_inact_timeout": 3600,
  "file_distribution_maxrate": {
    "default": 7,
    "min": 5,
    "max": 10
  },
  "file_distribution_losslimit": {
    "default": 7,
    "min": 5,
    "max": 10
  }
}