14. nqLinux
The nqLinux object is a built-in object that provides the specific functionality of the NEQTO Engine for Linux.
Functional overview:
- Provides functions to acquire the specific information of the NEQTO Engine for Linux.
nqLinux Global Object
Methods()/Properties | Summary | Version | Note |
---|---|---|---|
nqLinux.getVersion() | Gets the software version. | ||
nqLinux.getSerialID() | Gets the serial ID. | ||
nqLinux.getArchType() | Gets the architecture type. | ||
nqLinux.getNetType() | Gets the communication type. | ||
nqLinux.getPID() | Gets the process ID. | 00.00.04+ |
Details
nqLinux.getVersion()
Gets the software version.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Software version |
nqLinux.getSerialID()
Gets the serial ID.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Serial ID |
nqLinux.getArchType()
Gets the architecture type.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Architecture type'armv7l' ,'aarch64' ,'x86_64' |
nqLinux.getNetType()
Gets the communication type.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Communication type'LAN' |
nqLinux.getPID()
Gets the process ID.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | number | - | Process ID of the NEQTO daemon |
Object Usage Examples
Sample 1
This is a sample that gets and displays the software version, serial ID, architecture type, communication type, and process ID.
var version = nqLinux.getVersion();
var serialID = nqLinux.getSerialID();
var archType = nqLinux.getArchType();
var netType = nqLinux.getNetType();
var pid = nqLinux.getPID();
print('<<<' + version + '>>>');
print('<<<' + serialID + '>>>');
print('<<<' + archType + '>>>');
print('<<<' + netType + '>>>');
print('<<<' + pid + '>>>');
Updated: 2023-05-30