19. nqDiscovery
The nqDiscovery object is a built-in object for acquiring STM32 Discovery specific information.
nqDiscovery Global Object
Methods()/Properties | Summary | Version | Note |
---|---|---|---|
nqDiscovery.getVersion() | Gets the firmware version. | 01.00.00+ | |
nqDiscovery.getSerialID() | Gets the serial ID. | 01.00.00+ | |
nqDiscovery.getModuleType() | Gets the module type. | 01.00.00+ | |
nqDiscovery.getNetType() | Gets the communication type. | 01.00.00+ |
Details
nqDiscovery.getVersion()
Gets the firmware version.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Firmware version |
nqDiscovery.getSerialID()
Gets the serial ID.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Serial ID |
nqDiscovery.getModuleType()
Gets the module type.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Module type'WiFi' |
nqDiscovery.getNetType()
Gets the communication type.
Name | Type | M/O | Summary | Note |
---|---|---|---|---|
return | string | - | Communication type'WiFi' |
Object Usage Examples
Sample 1
This is a sample that gets and displays the firmware version, serial ID, module type, and communication type.
var fwVersion = nqDiscovery.getVersion();
var serialID = nqDiscovery.getSerialID();
var modType = nqDiscovery.getModuleType();
var netType = nqDiscovery.getNetType();
print('<<<' + fwVersion + '>>>');
print('<<<' + serialID + '>>>');
print('<<<' + modType + '>>>');
print('<<<' + netType + '>>>');
Updated: 2021-08-23